Converts a qualified reference into a simple reference and adds an on-demand static import statement for the class containing the referenced member.