boolean (@NotNull ASTNode annotation) { ASTNode current = annotation.getTreePrev(); while (current != null) { if (current instanceof PsiKeyword) { return true; } current = current.getTreePrev(); } return false; }