void (@NotNull List<ListPluginComponent> components) { clearSelectionWithout(-1); mySelectionIndex = -1; mySelectionLength = components.size(); if (mySelectionLength == 0) { return; } mySelectionIndex = getIndex(components.get(0)); for (ListPluginComponent component : components) { mySelectionIndex = Math.min(mySelectionIndex, getIndex(component)); if (component.getSelection() != SelectionType.SELECTION) { component.setSelection(SelectionType.SELECTION, true); } } fireSelectionEvent(); }