boolean (PsiMethodCallExpression call, PsiMethodCallExpression furtherCall) { PsiExpression comparator = skipReversed(ArrayUtil.getFirstElement(call.getArgumentList().getExpressions())); PsiExpression nextComparator = skipReversed(ArrayUtil.getFirstElement(furtherCall.getArgumentList().getExpressions())); if (EquivalenceChecker.getCanonicalPsiEquivalence().expressionsAreEquivalent(comparator, nextComparator)) { return true; } boolean isNatural = comparator == null || NATURAL_OR_REVERSED_COMPARATOR.matches(comparator); boolean isNextNatural = nextComparator == null || NATURAL_OR_REVERSED_COMPARATOR.matches(nextComparator); return isNatural && isNextNatural; }