boolean (GroovyConstructorReference reference) { if (reference.isReferenceTo(myConstructor)) { return true; } if (!myIncludeOverloads) { return false; } GroovyResolveResult classResult = reference.resolveClass(); if (classResult == null) { return false; } return myConstructor.getManager().areElementsEquivalent(myConstructor.getContainingClass(), classResult.getElement()); }