boolean (PsiExpression expression) { expression = PsiUtil.skipParenthesizedExprDown(expression); if (!(expression instanceof PsiMethodCallExpression reference)) { return false; } final PsiReferenceExpression methodExpression = reference.getMethodExpression(); final PsiElement resolved = methodExpression.resolve(); if (!(resolved instanceof PsiMethod method)) { return false; } if (!HardcodedMethodConstants.GET.equals(method.getName())) { return false; } final PsiClass aClass = method.getContainingClass(); return InheritanceUtil.isInheritor(aClass, CommonClassNames.JAVA_UTIL_LIST); }