public static boolean hasCorrections(IJavaAnnotation annotation) { int problemId= annotation.getId(); if (problemId == -1) { if (annotation instanceof MarkerAnnotation) { return hasCorrections(((MarkerAnnotation) annotation).getMarker()); } } else { ICompilationUnit cu= annotation.getCompilationUnit(); if (cu != null) { return hasCorrections(cu, problemId);
public static boolean hasCorrections(ICompilationUnit cu, int problemId) { ContributedProcessorDescriptor[] processors= getCorrectionProcessors(); for (int i= 0; i < processors.length; i++) { try { IQuickFixProcessor processor= (IQuickFixProcessor) processors[i].getProcessor(cu); if (processor != null && processor.hasCorrections(cu, problemId)) { return true; } } catch (CoreException e) {
	public static boolean hasCorrections(IJavaAnnotation annotation) {		int problemId= annotation.getId();		if (problemId == -1) {			if (annotation instanceof MarkerAnnotation) {				return hasCorrections(((MarkerAnnotation) annotation).getMarker());			}		} else {			ICompilationUnit cu= annotation.getCompilationUnit();			if (cu != null) {				return hasCorrections(cu, problemId);			}		}		return false;	}