private static boolean shouldAddOverrideAnnotation(PsiElement context) {
    JavaCodeStyleSettings style = JavaCodeStyleSettings.getInstance(context.getContainingFile());

    return style.INSERT_OVERRIDE_ANNOTATION && PsiUtil.isAvailable(JavaFeature.ANNOTATIONS, context);
  }
private static boolean shouldAddOverrideAnnotation(PsiElement context)