@Nullable public GrLiteral findModuleReference(@NotNull Module module){
  checkInitialized();
  String moduleGradlePath=getModuleGradlePath(module);
  if (moduleGradlePath != null) {
    commitDocumentChanges();
    for (    GrMethodCall includeStatement : getMethodCalls(myGroovyFile,INCLUDE_METHOD)) {
      for (      GrLiteral lit : getLiteralArguments(includeStatement)) {
        if (moduleGradlePath.equals(lit.getValue())) {
          return lit;
        }
      }
    }
  }
  return null;
}

@ Nullable public GrLiteral findModuleReference ( @ NotNull Module module ) { checkInitialized ( ) ; String moduleGradlePath = getModuleGradlePath ( module ) ; if ( moduleGradlePath != null ) { commitDocumentChanges ( ) ; for ( GrMethodCall includeStatement : getMethodCalls ( myGroovyFile , INCLUDE_METHOD ) ) { for ( GrLiteral lit : getLiteralArguments ( includeStatement ) ) { if ( moduleGradlePath . equals ( lit . getValue ( ) ) ) { return lit ; } } } } return null ; }
get the reference to the module from the settings file with new name if present .
