boolean (@NotNull PsiElement position, char typeChar) { PsiFile file = position.getContainingFile(); Document cachedDocument = PsiDocumentManager.getInstance(file.getProject()).getCachedDocument(file); return cachedDocument != null && cachedDocument.getUserData(COMBO_BOX_KEY) != null; }