PsiElement (PsiMethodCallExpression call) { PsiExpression left = extractLeft(call); if (left == null) return null; PsiExpression right = extractRight(call); if (right == null) return null; CommentTracker ct = new CommentTracker(); String replacement = ct.text(right) + ".containsAll(" + ct.text(left) + ")"; return ct.replaceAndRestoreComments(call, replacement); }