refactoring(glimmer): Extract utils from printer (#7528)
* Extract isWhitespaceNode
* Refactor isParentOfType to isParentOfSomeType
* Introduce isNodeOfSomeType
* Replace isNextNodeOfType with isNextNodeOfSomeType
* Move utils to utils file
* Sort utils
* Refactor isPrettierIgnoreNode function to use util
* Extract hasPrettierIgnore to utils
* Apply review feedback
* Apply review suggestions
* Add getSiblingNode