public @Nullable JsonSchemaObject getPatternPropertySchema(final @NotNull String name) {
    String value = myCachedPatternProperties.get(name);
    if (value != null) {
      assert mySchemasMap.containsKey(value);
      return mySchemasMap.get(value);
    }

    value = myCachedPatterns.keySet().stream()
      .filter(key -> matchPattern(myCachedPatterns.get(key), name))
      .findFirst()
      .orElse(null);
    if (value != null) {
      myCachedPatternProperties.put(name, value);
      assert mySchemasMap.containsKey(value);
      return mySchemasMap.get(value);
    }
    return null;
  }
public @Nullable JsonSchemaObject getPatternPropertySchema(final @NotNull String name)