boolean (@NotNull VirtualFile virtualFile) { try (AccessToken ignore = SlowOperations.knownIssue("IDEA-307614, EA-698479")) { return ProjectUtil.isProjectOrWorkspaceFile(virtualFile) || ProjectRootManager.getInstance(myProject).getFileIndex().isExcluded(virtualFile); } }