boolean (@NotNull PsiElement position) { if (psiElement().afterLeaf("@", ".").accepts(position)) return false; PsiElement parent = position.getParent(); if (parent instanceof PsiJavaCodeReferenceElement && parent.getParent() instanceof PsiTypeElement) { PsiElement typeHolder = psiApi().parents(parent.getParent()).skipWhile(Conditions.instanceOf(PsiTypeElement.class)).first(); return typeHolder instanceof PsiMember || typeHolder instanceof PsiClassLevelDeclarationStatement; } return false; }