@Override
  public PsiElement resolve(){
    PsiReference reference = chooseReference();
    if (cannotChoose()) {
      ResolveResult[] results = multiResolve(false);
      return results.length == 1 ? results[0].getElement() : null;
    }
    return reference.resolve();
  }
@Override
  public PsiElement resolve()