Converts a qualified reference into simple reference and adds a corresponding static import for that reference.