boolean (PsiStatement @NotNull [] branch, PsiExpressionStatement expressionStatement) { if (expressionStatement == null) return false; PsiMethodCallExpression call = tryCast(expressionStatement.getExpression(), PsiMethodCallExpression.class); if (call == null) return false; for (int i = branch.length - 1; i >= 0; i--) { if (!isSimilarCall(branch[i], call)) return false; } return true; }