boolean (PsiMethodReferenceExpression methodReference) { if (!"get".equals(methodReference.getReferenceName())) return false; if (!isQualifierEquivalent(ExpressionUtils.getEffectiveQualifier(methodReference))) return false; PsiMethod method = ObjectUtils.tryCast(methodReference.resolve(), PsiMethod.class); return method != null && MethodUtils.methodMatches(method, CommonClassNames.JAVA_UTIL_LIST, null, "get", PsiTypes.intType()); }