boolean (PsiStatement statement, PsiMethodCallExpression call) { PsiExpressionStatement currentStatement = tryCast(statement, PsiExpressionStatement.class); if (currentStatement == null) return false; PsiMethodCallExpression otherCall = tryCast(currentStatement.getExpression(), PsiMethodCallExpression.class); if (otherCall == null) return false; return isEqualChain(call, otherCall); }