void (List<? extends SortKey> keys) { if (keys == null || keys.isEmpty()) return; final SortKey key = keys.get(0); if (key.getSortOrder() == SortOrder.UNSORTED) return; mySortKey = key; final ColumnInfo columnInfo = myModel.getColumnInfos()[key.getColumn()]; final Comparator<? super NodeDescriptor<?>> comparator = columnInfo.getComparator(); if (comparator != null) { fireSortOrderChanged(); myModel.setComparator(reverseComparator(comparator, key.getSortOrder())); } }