PsiFile () { PsiFile file = myFilePointer != null ? ReadAction.compute(myFilePointer::getElement) : null; return file != null ? file : myFile; // in case of full invalidation, rollback to the original psiFile }