code: protected BshMethod getImportedMethod(final String name, final Class<?>[] sig)
              throws UtilEvalError {
          // Try object imports
          for (final Object object : this.importedObjects) {
              final Invocable method = Reflect.resolveJavaMethod(
                     object.getClass(), name, sig, false/* onlyStatic */);
              if (method != null)
                  return new BshMethod(method, object);
          }
          // Try static imports
          for (final Class<?> stat : this.importedStatic) {
              final Invocable method = Reflect.resolveJavaMethod(
                      stat, name, sig, true/* onlyStatic */);
              if (method != null)
                  return new BshMethod(method, null/* object */);
          }
          return null;
      }
docs: Gets the imported method.
  @param name the name
  @param sig the sig
  @return the imported method
  @throws UtilEvalError the util eval error