void (@NotNull GrReferenceExpression referenceExpression) { if (myFirstArgumentName.equals(referenceExpression.getReferenceName()) && !referenceExpression.isQualified()) { PsiElement parent = referenceExpression.getParent(); if (parent instanceof GrReferenceExpression parentRef) { PsiElement parentParent = parentRef.getParent(); if (parentParent instanceof GrMethodCallExpression) { if (METHOD_NAMES.contains(parentRef.getReferenceName())) { extractArguments(((GrMethodCallExpression)parentParent).getArgumentList()); } } else { add(parentRef.getReferenceName()); } } else if (parent instanceof GrIndexProperty indexProperty) { extractArguments(indexProperty.getArgumentList()); } } super.visitReferenceExpression(referenceExpression); }