boolean () { Collection<MapInfo> selection = myDirectoryMappingTable.getSelection(); if (selection.isEmpty()) { return true; } if (selection.size() == 1 && selection.iterator().next().type == MapInfo.Type.SEPARATOR) { return true; } List<MapInfo> selectedRegisteredRoots = getSelectedRegisteredRoots(); return selectedRegisteredRoots.size() == selection.size() || selectedRegisteredRoots.size() == 0; }