}else{
ChooseImport query = new ChooseImport(project, type);
try{
AddImportsOperation op = new AddImportsOperation(
src, offset, 1, query, true /* save */, true /* apply */);
op.run(null);
edits = op.getResultingEdit();
if (edits == null){
IStatus status = op.getStatus();
return status.getSeverity() != IStatus.OK ? status.getMessage() : null;
}