boolean (@NotNull VirtualFile file) { final OrderEntry orderEntry = ModuleRootManager.getInstance(myModule).getFileIndex().getOrderEntryForFile(file); return orderEntry instanceof JdkOrderEntry || orderEntry instanceof LibraryOrderEntry; }