@Override
        public boolean isReferenceTo(PsiElement psiElement) {
            if(!(psiElement instanceof PhpNamedElement)) {
                return false;
            }
            String text = getElement().getText();
            if(StringUtils.isBlank(text)) {
                return false;
            }
            PsiElement namespace = element.getPrevSibling();
            if(PhpPsiUtil.isOfType(namespace, PhpDocTokenTypes.DOC_NAMESPACE)) {
                // @TODO: namespace not supported
                return false;
            }
            String classByContext = PhpElementsUtil.getFqnForClassNameByContext(element, text);
            if(classByContext != null) {
                return StringUtils.stripStart(((PhpNamedElement) psiElement).getFQN(), "\\")
                    .equalsIgnoreCase(StringUtils.stripStart(fqn, "\\"));
            }
            return false;
        }
@Override
        public boolean isReferenceTo(PsiElement psiElement) {
            if(!(psiElement instanceof PhpNamedElement)) {
                return false;
            }
            String text = getElement().getText();
            if(StringUtils.isBlank(text)) {
                return false;
            }
            PsiElement namespace = element.getPrevSibling();
            if(PhpPsiUtil.isOfType(namespace, PhpDocTokenTypes.DOC_NAMESPACE)) {
               
                return false;
            }
            String classByContext = PhpElementsUtil.getFqnForClassNameByContext(element, text);
            if(classByContext != null) {
                return StringUtils.stripStart(((PhpNamedElement) psiElement).getFQN(), "\\")
                    .equalsIgnoreCase(StringUtils.stripStart(fqn, "\\"));
            }
            return false;
        }
@override public boolean isreferenceto(psielement psielement) { if(!(psielement instanceof phpnamedelement)) { return false; } string text = getelement().gettext(); if(stringutils.isblank(text)) { return false; } psielement namespace = element.getprevsibling(); if(phppsiutil.isoftype(namespace, phpdoctokentypes.doc_namespace)) { return false; } string classbycontext = phpelementsutil.getfqnforclassnamebycontext(element, text); if(classbycontext != null) { return stringutils.stripstart(((phpnamedelement) psielement).getfqn(), "\\") .equalsignorecase(stringutils.stripstart(fqn, "\\")); } return false; }