code: private static void addUDFDependences(Function function, Statement catalogStmt) {
          Procedure procedure = (Procedure)catalogStmt.getParent();
          addFunctionDependence(function, procedure, catalogStmt);
          addStatementDependence(function, catalogStmt);
      }
docs: Add all statement dependences, both ways.
  @param function The function to add as dependee.
  @param procedure The procedure of the statement.
  @param catalogStmt The statement to add as depender.