NodeSortKey (String paneId) { var currentSortKey = currentState.getSortKey(); var pane = getProjectViewPaneById(paneId); return pane != null && pane.supportsSortKey(currentSortKey) ? currentSortKey : ProjectViewSettings.Immutable.DEFAULT.getSortKey(); }