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