handle constructors in labelprovider and doc hover