private void BuildDeclarations()
        {
            myDeclarations.Clear();

            IDeclaredElement element = myOriginalElementPointer.FindDeclaredElement();

            if (element == null)
            {
                return;
            }

            IList <IDeclaration> declarations = new MultyPsiDeclarations(element).AllDeclarations;

            foreach (IDeclaration declaration in declarations)
            {
                myDeclarations.Add(declaration);
            }
        }
        private void BuildDeclarations()
        {
            this.myDeclarations.Clear();

            IDeclaredElement element = this.myOriginalElementPointer.FindDeclaredElement();

            if (element == null)
            {
                return;
            }

            var declarations = new MultyPsiDeclarations(element).AllDeclarations.ToList();

            if (element is IUriIdentifierDeclaredElement)
            {
                declarations.AddRange(UriIdentifierDeclaredElement.GetDeclarations(element as IUriIdentifierDeclaredElement));
            }

            foreach (var declaration in declarations)
            {
                this.myDeclarations.Add(declaration);
            }
        }
    private void BuildDeclarations()
    {
      myDeclarations.Clear();

      IDeclaredElement element = myOriginalElementPointer.FindDeclaredElement();
      if (element == null)
      {
        return;
      }

      IList<IDeclaration> declarations = new MultyPsiDeclarations(element).AllDeclarations;

      foreach (IDeclaration declaration in declarations)
      {
        myDeclarations.Add(declaration);
      }
    }