public GroovyResolveResult @NotNull [] getCandidates() {
    if (myCandidates == null) return GroovyResolveResult.EMPTY_ARRAY;
    return myCandidates.toArray(GroovyResolveResult.EMPTY_ARRAY);
  }
public GroovyResolveResult @NotNull [] getCandidates()