Bug 31821 Quick fix for unused imports
build I20030211 It would be nice to have a quick fix for unused import warnings which simply removes the import.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CorrectionMarkerResolutionGenerator.java
public IMarkerResolution[] getResolutions(IMarker marker) {
		int id= marker.getAttribute(IJavaModelMarker.ID, -1);
		if (!JavaCorrectionProcessor.hasCorrections(id)) {
			return NO_RESOLUTIONS; 
		}
		
		try {
			ICompilationUnit cu= getCompilationUnit(marker);
			if (cu != null && JavaModelUtil.isEditable(cu)) {
				IEditorInput input= EditorUtility.getEditorInput(cu);
				if (input != null) { 
					CorrectionContext context= findCorrectionContext(input, marker);
					if (context != null) {
						ArrayList proposals= new ArrayList();
						JavaCorrectionProcessor.collectCorrections(context, proposals);
						int nProposals= proposals.size();
						IMarkerResolution[] resolutions= new IMarkerResolution[nProposals];
						for (int i= 0; i < nProposals; i++) {
							resolutions[i]= new CorrectionMarkerResolution(input, (IJavaCompletionProposal) proposals.get(i));
						}
						return resolutions;
					}
				}
			}
		} catch (JavaModelException e) {
			JavaPlugin.log(e);
		}
		return new IMarkerResolution[0]; 
	}
	private ICompilationUnit getCompilationUnit(IMarker marker) {