void (@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); } }