private static void removeRedundantObjectMethods(@NotNull PsiClass record, CallMatcher redundantObjectMethods) {
    ContainerUtil.filter(record.getMethods(), redundantObjectMethods::methodMatches)
        .forEach(PsiMethod::delete);
  }
private static void removeRedundantObjectMethods(@NotNull PsiClass record, CallMatcher redundantObjectMethods)