Bug 108453 [quick fix] @SuppressWarnings("nls") on static initializer causes error
If you have static block with non-externalised strings and you add "SuppressWarning" quick fix to the block, jdt compiler reports error on the static key word saying "Syntax error, insert "enum Identifier" to complete EnumHeader" Cheers
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java
String label= CorrectionMessages.LocalCorrectionsSubProcessor_addnon_nls_description;
			Image image= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_NLS_NEVER_TRANSLATE);
			CUCorrectionProposal nlsProposal= new CUCorrectionProposal(label, cu, 6, image);
			nlsProposal.setCommandId(ADD_NON_NLS_ID);
			nlsProposal.getTextChange().getEdit().addChild(edit);
			proposals.add(nlsProposal);
		}
	}
	
	public static void getUnnecessaryNLSTagProposals(IInvocationContext context, IProblemLocation problem, Collection proposals) throws JavaModelException {
		IBuffer buffer= context.getCompilationUnit().getBuffer();
		if (buffer != null) {
			int offset= problem.getOffset();
			int length= problem.getLength();
			while (offset > 0 && Strings.isIndentChar(buffer.getChar(offset - 1))) {
				offset--;
				length++;
			}
			String name= CorrectionMessages.LocalCorrectionsSubProcessor_remove_nls_tag_description;
			Image image= JavaPlugin.getDefault().getWorkbench().getSharedImages().getImage(ISharedImages.IMG_TOOL_DELETE);
			ReplaceCorrectionProposal proposal= new ReplaceCorrectionProposal(name, context.getCompilationUnit(), offset, length, new String(), 6);
			proposal.setImage(image);
			proposals.add(proposal);
		}
	}
	
	/*
	 * Fix instance accesses and indirect (static) accesses to static fields/methods
	 */
	public static void addCorrectAccessToStaticProposals(IInvocationContext context, IProblemLocation problem, Collection proposals) throws CoreException {