code: public BshMethod[] getMethods() {
          return this.methods.values().stream()
                  .flatMap(v -> v.stream()).toArray(BshMethod[]::new);
      }
docs: Get the methods defined in this namespace. (This does not show methods
  in parent namespaces). Note: This will probably be renamed
  getDeclaredMethods()
  @return the methods