boolean (@NotNull VirtualFile file) { if (file instanceof ProjectAwareVirtualFile) { return ((ProjectAwareVirtualFile)file).isInProject(Objects.requireNonNull(getProject())); } return myFileIndex.isInProjectScope(file); }