void (@NotNull ActionContext context, @NotNull PsiAnnotation annotation, @NotNull ModPsiUpdater updater) { final PsiTypeElement psiTypeElement = getTypeElement(annotation); if (psiTypeElement == null) return; final PsiJavaCodeReferenceElement innermostParent = psiTypeElement.getInnermostComponentReferenceElement(); if (innermostParent == null) return; final PsiElement rightmostDot = getRightmostDot(innermostParent.getLastChild()); if (rightmostDot == null) return; innermostParent.addAfter(annotation, rightmostDot); final CommentTracker ct = new CommentTracker(); ct.markUnchanged(annotation); ct.deleteAndRestoreComments(annotation); }