Extracting qualified name and type references