public static boolean isSingleBindingVariant(GroovyResolveResult[] candidates) {
    return candidates.length == 1 && candidates[0].getElement() instanceof GrBindingVariable;
  }
public static boolean isSingleBindingVariant(GroovyResolveResult[] candidates)