private boolean shouldDeleteOverrideAttribute(PsiMethod method) {
    return ContainerUtil.and(method.getHierarchicalMethodSignature().getSuperSignatures(), signature -> {
        PsiMethod superMethod = signature.getMethod();
        if (superMethod == myMethod) {
          return true;
        }
        if (JavaLanguage.INSTANCE == method.getLanguage() &&
            Objects.requireNonNull(superMethod.getContainingClass()).isInterface()) {
          return !PsiUtil.isAvailable(JavaFeature.OVERRIDE_INTERFACE, method);
        }
        return false;
      });
  }
private boolean shouldDeleteOverrideAttribute(PsiMethod method)