refactor ErlTextHover