refactoring of YamlGoToDeclarationHandler