PsiElement (PsiMethodCallExpression streamMethodCall) { PsiMethodCallExpression collectionStreamCall = getQualifierMethodCall(streamMethodCall); if (collectionStreamCall == null) return null; PsiExpression collectionExpression = ExpressionUtils.getEffectiveQualifier(collectionStreamCall.getMethodExpression()); if (collectionExpression == null) return null; collectionStreamCall.replace(collectionExpression); ExpressionUtils.bindCallTo(streamMethodCall, myReplacementMethod); return streamMethodCall; }