boolean () { if (isDeleted()) return false; return ReadAction.compute(() -> { if (getRefManager().getProject().isDisposed()) return false; VirtualFile directory = getVirtualFile(); return directory != null && directory.isValid(); }); }