private static boolean equalsComments(@NotNull List<PsiComment> comments1, @NotNull List<PsiComment> comments2) {
      if (comments1.size() != comments2.size()) return false;
      for (int i = 0; i < comments1.size(); i++) {
        if (!Objects.equals(comments1.get(i).getText().trim(), comments2.get(i).getText().trim())) {
          return false;
        }
      }
      return true;
    }
private static boolean equalsComments(@NotNull List<PsiComment> comments1, @NotNull List<PsiComment> comments2)