boolean (@NotNull PsiElement element) { if (element instanceof PsiMethod) { PsiAnnotation annotation = AnnotationUtil.findAnnotation((PsiMethod)element, true, Override.class.getName()); if (annotation != null) { annotation.delete(); return true; } } return false; }