public static IndexPattern @NotNull [] getIndexPatterns() {
    List<IndexPattern> result = new ArrayList<>();
    for (IndexPatternProvider provider : IndexPatternProvider.EP_NAME.getExtensionList()) {
      result.addAll(Arrays.asList(provider.getIndexPatterns()));
    }
    return result.toArray(IndexPattern.EMPTY_ARRAY);
  }
public static IndexPattern @NotNull [] getIndexPatterns()