boolean (PsiMethodCallExpression methodCallExpression) { if (methodCallExpression == null) { return false; } final PsiReferenceExpression methodExpression = methodCallExpression.getMethodExpression(); final PsiExpression qualifierExpression = PsiUtil.skipParenthesizedExprDown(methodExpression.getQualifierExpression()); if (!(qualifierExpression instanceof PsiReferenceExpression reference)) { if (collection.isDummyVariable() && (qualifierExpression == null || qualifierExpression instanceof PsiThisExpression || qualifierExpression instanceof PsiSuperExpression)) { return expressionIsListGetLookup(methodCallExpression); } return false; } final PsiExpression qualifier = PsiUtil.skipParenthesizedExprDown(reference.getQualifierExpression()); if (qualifier != null && !(qualifier instanceof PsiThisExpression) && !(qualifier instanceof PsiSuperExpression)) { return false; } final PsiElement target = reference.resolve(); if (collection.isDummyVariable() || !collection.getVariable().equals(target)) { return false; } return expressionIsListGetLookup(methodCallExpression); }