better handling of anon classes in doc hover