Add missing import when need to retrieve external ref