boolean (@Nullable VirtualFile vf) { if (vf == null) { return false; } return ReadAction.compute(() -> { boolean isUnderProject = isFileInBaseDir(vf) || isInDirectoryBasedRoot(vf) || hasExplicitMapping(vf) || myExcludedIndex.isInContent(vf) || (!Registry.is("ide.hide.excluded.files") && myExcludedIndex.isExcludedFile(vf)); return isUnderProject && !isIgnored(vf); }); }