int (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; }