code: public void setMethod(BshMethod method) {
          String name = method.getName();
          if (!this.methods.containsKey(name))
              this.methods.put(name, new ArrayList<BshMethod>(1));
          this.methods.get(name).remove(method);
          this.methods.get(name).add(0, method);
      }
docs: Dissallow static vars outside of a class.
  @param name is here just to allow the error message to use it protected
  void checkVariableModifiers(String name, Modifiers modifiers)
  throws UtilEvalError { if (modifiers!=null &&
  modifiers.hasModifier("static")) throw new UtilEvalError("Can't
  declare static variable outside of class: "+name); }
  @param method the method
  @throws UtilEvalError the util eval error Note: this is primarily for
  internal use.
  @see Interpreter#source(String)
  @see Interpreter#eval(String)