void (PsiMethodCallExpression filterCall, boolean isAnyMatch) { if (!STREAM_FILTER.test(filterCall)) return; PsiBinaryExpression comparison = extractComparison(filterCall, isAnyMatch); if (comparison == null) return; String filterText = filterCall.getArgumentList().getExpressions()[0].getText(); PsiExpression filterQualifier = filterCall.getMethodExpression().getQualifierExpression(); if (filterQualifier == null) return; String base = filterQualifier.getText(); CommentTracker ct = new CommentTracker(); ct.markUnchanged(filterQualifier); ct.replaceAndRestoreComments(comparison, base + "." + (isAnyMatch? "anyMatch" : "noneMatch") + "(" + filterText + ")"); }