code: static JSType createType(boolean shouldCreate, JSTypeRegistry registry, JSTypeNative typeName) {
      if (!shouldCreate) {
        return null;
      }
      return registry.getNativeType(typeName);
    }
docs: Returns the JSType as specified by the typeName.
  Returns null if shouldCreate is false.