GrAnnotationArgumentList (@NotNull final Editor editor, @NotNull final PsiFile file) { PsiElement element = file.findElementAt(editor.getCaretModel().getOffset()); if (element == null) return null; return PsiTreeUtil.getParentOfType(element, GrAnnotationArgumentList.class); }