public static Stella_Object getLocalVariableInfo(Symbol variable, Keyword key) {
    { StandardObject entry = ((((KeyValueList)(Stella.$LOCALVARIABLETYPETABLE$.get())) != null) ? ((StandardObject)(KeyValueList.lookupVariableTable(((KeyValueList)(Stella.$LOCALVARIABLETYPETABLE$.get())), variable))) : ((StandardObject)(null)));

      if (entry != null) {
        if (Surrogate.subtypeOfP(Stella_Object.safePrimaryType(entry), Stella.SGT_STELLA_KEY_VALUE_LIST)) {
          { KeyValueList entry000 = ((KeyValueList)(entry));

            return (entry000.lookup(key));
          }
        }
        else {
          if (key == Stella.KWD_TYPE) {
            return (entry);
          }
        }
      }
      return (null);
    }
  }