Function addGotoDefinitionHandler