boolean (@NotNull Project project, @NotNull VirtualFile file) { ProjectFileIndex fileIndex = ProjectRootManager.getInstance(project).getFileIndex(); return fileIndex.isInContent(file) || fileIndex.isExcluded(file); }