toTypeDeclaration

For a node it would find the corresponding reference type declaration.