* @return Module
   */
  public static Module getModule(Stella_Object moduleref) {
    { Surrogate testValue000 = Stella_Object.safePrimaryType(moduleref);

      if (Surrogate.subtypeOfStringP(testValue000)) {
        { StringWrapper moduleref000 = ((StringWrapper)(moduleref));

          return (Stella.getStellaModule(moduleref000.wrapperValue, false));
        }
      }
      else if (Surrogate.subtypeOfSurrogateP(testValue000)) {
        { Surrogate moduleref000 = ((Surrogate)(moduleref));

          return (Stella.getStellaModule(moduleref000.symbolName, false));
        }
      }
      else if (Surrogate.subtypeOfSymbolP(testValue000)) {
        { Symbol moduleref000 = ((Symbol)(moduleref));

          return (Stella.getStellaModule(moduleref000.symbolName, false));
        }
      }
      else if (Surrogate.subtypeOfP(testValue000, Logic.SGT_STELLA_MODULE)) {
        { Module moduleref000 = ((Module)(moduleref));

          return (moduleref000);
        }
      }
      else {
        return (null);
      }
    }
  }