Collection<PsiElement> (@NotNull PsiReference reference) { if (reference instanceof GrReferenceExpression referenceExpression) { if (referenceExpression.hasMemberPointer()) { GroovyResolveResult[] results = referenceExpression.multiResolve(false); if (results.length > 0) { return collapseReflectedMethods(mapNotNull(results, it -> it.getElement())); } } } return super.getTargetCandidates(reference); }