Bug 31649 Quick assist surround proposals need different label
20030211 All uix fix/assist proposals have a descriptive label 'Remove xx', 'Change to..' The surround template proposals should follow this rule as well. e.g. 'Surround with {0} template'
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/JavaCorrectionProcessor.java
if (problemId == -1) {
			if (annotation instanceof MarkerAnnotation) {
				return hasCorrections(((MarkerAnnotation) annotation).getMarker());
			}
			return false;
		} else {
			return hasCorrections(problemId);
		}
	}
	
	public static boolean hasCorrections(IMarker marker) {
		if (marker == null || !marker.exists())
			return false;
		
		try {
			if (marker.isSubtypeOf(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER)) {
				int problemId= marker.getAttribute(IJavaModelMarker.ID, -1);
				return problemId != -1 && hasCorrections(problemId);
			} else {
				IMarkerHelpRegistry registry= PlatformUI.getWorkbench().getMarkerHelpRegistry();
				return registry != null && registry.hasResolutions(marker);
			}
		} catch (CoreException e) {
			JavaPlugin.log(e);
			return false;
		}
	}	
	
	private IEditorPart fEditor;
	private QuickTemplateProcessor fQuickTemplateProcessor;