private void NavigateToTypeDeclaration(ITypeDeclaration typeDeclaration, CodeSpan selection)
 {
     if (typeDeclaration.Identifier.CodeSpan.Intersects(selection))
     {
         ITypeDeclaration enclosingType = typeDeclaration.Enclosing <ITypeDeclaration>();
         if (enclosingType.ExistsTextuallyInFile)
         {
             enclosingType.Identifier.Select();
         }
     }
     else
     {
         typeDeclaration.Identifier.Select();
     }
 }
 private void NavigateToTypeDeclaration(ITypeDeclaration typeDeclaration, CodeSpan selection)
 {
     if (typeDeclaration.Identifier.CodeSpan.Intersects(selection))
     {
         ITypeDeclaration enclosingType = typeDeclaration.Enclosing<ITypeDeclaration>();
         if (enclosingType.ExistsTextuallyInFile)
         {
             enclosingType.Identifier.Select();
         }
     }
     else
     {
         typeDeclaration.Identifier.Select();
     }
 }