EA-49101: getContainingFile() must not be called on invalid PsiElement