boolean (@NotNull PsiElement element) { Document document = PsiDocumentManager.getInstance(element.getProject()).getDocument(element.getContainingFile()); return document != null && document.getUserData(DATA_KEY) != null; }