private void registerProblems(CatchSectionWrapper @NotNull [] sections,
                                  CatchSectionIndices @Nullable [] sectionIndices,
                                  boolean @NotNull [] problems,
                                  boolean empty) {
      if (sectionIndices == null) return;

      for (int index = 0; index < sections.length; index++) {
        if (problems[index]) continue;

        int collapseIntoIndex = sectionIndices[index].myCollapseIntoIndex;
        if (collapseIntoIndex >= 0) {
          registerProblem(sections, index, collapseIntoIndex, empty);
          problems[index] = true;
        }
      }
    }
private void registerProblems(CatchSectionWrapper @NotNull [] sections,
                                  CatchSectionIndices @Nullable [] sectionIndices,
                                  boolean @NotNull [] problems,
                                  boolean empty)