boolean (@Nullable ContentRevision revision, final @NotNull Project project) { if (revision == null) return true; return ReadAction.compute(() -> { if (project.isDisposed()) return false; return ProjectLevelVcsManager.getInstance(project).isIgnored(revision.getFile()); }); }