@NotNull
  @Override
  public PsiElement getNavigationElement() {
    if (myAntClass != null) {
      final PsiClass psiClass = JavaPsiFacade.getInstance(getProject()).findClass(myAntClass.getName(), myFile.getResolveScope());
      if (psiClass != null) {
        return psiClass;
      }
    }
    return this;
  }
@NotNull
  @Override
  public PsiElement getNavigationElement()