boolean (@Nullable VirtualFile file) { for (Pair<LibraryRootsComponentDescriptor, FileChooserDescriptor> pair : descriptors) { if (pair.getSecond().isFileSelectable(file)) { return true; } } return false; }