@Nullable static IfInspectionResult inspect(@NotNull PsiIfStatement ifStatement,
                                                PsiStatement @NotNull [] thenBranch,
                                                PsiStatement @NotNull [] elseBranch,
                                                boolean isOnTheFly,
                                                IfStatementWithIdenticalBranchesInspection inspection) {
      ElseIf elseIf = from(ifStatement, thenBranch);
      if (elseIf == null) return null;
      String message = JavaAnalysisBundle.message("inspection.common.if.parts.family.else.if.description");
      return new IfInspectionResult(ifStatement.getFirstChild(), inspection.myHighlightElseIf, new MergeElseIfsFix(elseIf.myInvert), message);
    }
@Nullable static IfInspectionResult inspect(@NotNull PsiIfStatement ifStatement,
                                                PsiStatement @NotNull [] thenBranch,
                                                PsiStatement @NotNull [] elseBranch,
                                                boolean isOnTheFly,
                                                IfStatementWithIdenticalBranchesInspection inspection)