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