private static int getSectionIndex(CatchSectionWrapper @NotNull [] sections, @NotNull PsiElement catchSection) {
      for (int i = 0; i < sections.length; i++) {
        CatchSectionWrapper section = sections[i];
        if (section != null && section.myCatchSection == catchSection) {
          return i;
        }
      }
      return -1;
    }
private static int getSectionIndex(CatchSectionWrapper @NotNull [] sections, @NotNull PsiElement catchSection)