code: public static JavaModule of(Object module) {
          if (!JavaType.MODULE.isInstance(module)) {
              throw new IllegalArgumentException("Not a Java module: " + module);
          }
          return new JavaModule(module);
      }
docs: Represents the supplied {@code java.lang.Module} as an instance of this class and validates that the
  supplied instance really represents a Java {@code Module}.
  
  @param module The module to represent.
  @return A representation of the supplied Java module.