void (@NotNull Project project, @NotNull PsiFile file, @Nullable Editor editor, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { super.invoke(project, file, editor, startElement, endElement); if (!myFromDefaultValue && startElement instanceof PsiAnnotationMethod) { WriteCommandAction.writeCommandAction(project, file).run(() -> { final PsiAnnotationMemberValue defaultValue = ((PsiAnnotationMethod)startElement).getDefaultValue(); if (defaultValue != null) { if (editor != null) { editor.getCaretModel().moveToOffset(defaultValue.getTextOffset()); } new CommentTracker().deleteAndRestoreComments(defaultValue); } }); } }