boolean (@NotNull VirtualFile vf) { return ReadAction.compute(() -> { if (myProject.isDisposed() || myProject.isDefault()) return false; if (Registry.is("ide.hide.excluded.files")) { return myExcludedIndex.isExcludedFile(vf); } else { return myExcludedIndex.isUnderIgnored(vf); } }); }