private static void setSortKey(@Nullable ProjectViewImpl view, @Nullable AbstractProjectViewPane pane, @NotNull NodeSortKey sortKey) {
    getDefaultState().setSortKey(sortKey);
    getGlobalOptions().setSortKey(sortKey);
    if (view == null || (pane != null && !pane.supportsSortKey(sortKey))) {
      return;
    }
    boolean updated = view.currentState.getSortKey() != sortKey;
    view.currentState.setSortKey(sortKey);
    if (updated) {
      view.updatePanes(true);
    }
  }
private static void setSortKey(@Nullable ProjectViewImpl view, @Nullable AbstractProjectViewPane pane, @NotNull NodeSortKey sortKey)