boolean (@NotNull VirtualFile file) { if (!super.contains(file)) { return false; } if (myIndex == null) { return false; } if (FileTypeRegistry.getInstance().isFileOfType(file, JavaClassFileType.INSTANCE)) { return myIndex.isInLibraryClasses(file) && (myIncludeVersions || !isVersioned(file, myIndex)); } return myIndex.isUnderSourceRootOfType(file, JavaModuleSourceRootTypes.SOURCES) || (myIncludeLibrarySources || myBaseScope.isForceSearchingInLibrarySources()) && myIndex.isInLibrarySource(file); }