boolean (PsiReferenceExpression expression) { final PsiElement parent = ParenthesesUtils.getParentSkipParentheses(expression); if (!(parent instanceof PsiExpressionList)) return false; final PsiElement grandParent = parent.getParent(); if (!(grandParent instanceof PsiMethodCallExpression methodCallExpression)) return false; if (!MAP_GET.test(methodCallExpression)) return false; PsiExpression qualifier = PsiUtil.skipParenthesizedExprDown(methodCallExpression.getMethodExpression().getQualifierExpression()); if (!(qualifier instanceof PsiReferenceExpression referenceExpression)) return false; if (!EquivalenceChecker.getCanonicalPsiEquivalence().expressionsAreEquivalent(myMapReference, referenceExpression)) return false; myParameterAccesses.add(methodCallExpression); return true; }