boolean () { if (PsiTreeUtil.getNonStrictParentOfType(myPosition, PsiLiteralExpression.class, PsiComment.class) != null) { return false; } if (psiElement().afterLeaf("::").accepts(myPosition)) { return false; } return true; }