if (!hasResolutions(marker)) { return NO_RESOLUTIONS; }  try { ICompilationUnit cu= getCompilationUnit(marker); if (cu != null) { IEditorInput input= EditorUtility.getEditorInput(cu); if (input != null) { IProblemLocation location= findProblemLocation(input, marker); if (location != null) {  IInvocationContext context= new AssistContext(cu,  location.getOffset(), location.getLength()); ArrayList proposals= new ArrayList(); JavaCorrectionProcessor.collectCorrections(context, new IProblemLocation[] { location }, proposals); Collections.sort(proposals, new CompletionProposalComparator());  int nProposals= proposals.size(); IMarkerResolution[] resolutions= new IMarkerResolution[nProposals]; for (int i= 0; i < nProposals; i++) { resolutions[i]= new CorrectionMarkerResolution(context.getCompilationUnit(), location.getOffset(), location.getLength(), (IJavaCompletionProposal) proposals.get(i)); } return resolutions; } } } } catch (JavaModelException e) { JavaPlugin.log(e); } return NO_RESOLUTIONS;
return internalGetResolutions(marker);
	public IMarkerResolution[] getResolutions(IMarker marker) {		if (!hasResolutions(marker)) {			return NO_RESOLUTIONS;		}		try {			ICompilationUnit cu= getCompilationUnit(marker);			if (cu != null) {				IEditorInput input= EditorUtility.getEditorInput(cu);				if (input != null) {					IProblemLocation location= findProblemLocation(input, marker);					if (location != null) {						IInvocationContext context= new AssistContext(cu,  location.getOffset(), location.getLength());						ArrayList proposals= new ArrayList();						JavaCorrectionProcessor.collectCorrections(context, new IProblemLocation[] { location }, proposals);						Collections.sort(proposals, new CompletionProposalComparator());						int nProposals= proposals.size();						IMarkerResolution[] resolutions= new IMarkerResolution[nProposals];						for (int i= 0; i < nProposals; i++) {							resolutions[i]= new CorrectionMarkerResolution(context.getCompilationUnit(), location.getOffset(), location.getLength(), (IJavaCompletionProposal) proposals.get(i));						}						return resolutions;					}				}			}		} catch (JavaModelException e) {			JavaPlugin.log(e);		}		return NO_RESOLUTIONS;	}