public static <T extends PsiElement> void openFilesInEditor(T @NotNull [] elements) {
    final int limit = EditorWindow.Companion.getTabLimit();
    final int max = Math.min(limit, elements.length);
    for (int i = 0; i < max; i++) {
      openInEditor(elements[i], true, true);
    }
  }
public static <T extends PsiElement> void openFilesInEditor(T @NotNull [] elements)