void (PsiMethodCallExpression originalCall, PsiMethodCallExpression patternCall, PsiMethodCallExpression replacementCall) { PsiExpression qualifier = originalCall.getMethodExpression().getQualifierExpression(); if (qualifier == null) { return; } PsiReferenceExpression referenceExpression = replacementCall.getMethodExpression(); if (patternCall.getMethodExpression().getQualifierExpression() != null || referenceExpression.getQualifierExpression() != null) { return; } referenceExpression.setQualifierExpression(qualifier); }