boolean () { if (myModificationStamp != getFile().getModificationStamp()) { return true; } PsiElement psiElement = SoftReference.dereference(myPsiElementRef); return psiElement != null && !ReadAction.compute(psiElement::isValid); }