public boolean contains(@NotNull VirtualFile file) {
return myEntries.contains(getFileRoot(file));
}
@Nullable
private VirtualFile getFileRoot(@NotNull VirtualFile file) {
<BUG>if (myIndex.isInContent(file)) {
return myIndex.getSourceRootForFile(file);</BUG>
}
if (myIndex.isInLibraryClasses(file)) {
return myIndex.getClassRootForFile(file);

public boolean contains(@NotNull VirtualFile file) {
return myEntries.contains(getFileRoot(file));
}
@Nullable
private VirtualFile getFileRoot(@NotNull VirtualFile file) {
if (myIndex.isInContent(file) || myIndex.isInLibrarySource(file)) {
return myIndex.getSourceRootForFile(file);
}
if (myIndex.isInLibraryClasses(file)) {
return myIndex.getClassRootForFile(file);
