boolean (@NotNull VirtualFile file) { if (!filter.accept(file)) { return false; } if (fileIndex == null) { fileIndex = ProjectRootManager.getInstance(project).getFileIndex(); } return fileIndex.isInContent(file); }