VirtualFile[] (Library library, final OrderRootType type) { final LibraryTable table = library.getTable(); if (table != null && getModifiableLibraryTable(table) instanceof LibrariesModifiableModel librariesModel && librariesModel.hasLibraryEditor(library)) { return librariesModel.getLibraryEditor(library).getFiles(type); } return library.getFiles(type); }