* @param module
   * @return Symbol
   */
  public static Symbol safeImportSymbol(Symbol symbol, Module module) {
    { String name = symbol.symbolName;
      Symbol modulesymbol = Symbol.lookupSymbolInModule(name, module, false);

      if ((modulesymbol != null) ||
          (((Module)(symbol.homeContext)) == null)) {
        return (modulesymbol);
      }
      else {
        return (Symbol.importSymbol(symbol, module));
      }
    }
  }