Adds an import statement for a qualified Java class reference and shortens the reference.