result.add(new GroupedTextEdit(edit, FixMessages.StringFix_RemoveNonNls_description));
if (edit != null) { result.add(new TextEditGroup(FixMessages.StringFix_RemoveNonNls_description, edit)); }
	public static IFix createCleanUp(CompilationUnit compilationUnit, boolean addNLSTag, boolean removeNLSTag) throws CoreException, JavaModelException {		if (!addNLSTag && !removeNLSTag)			return null;				IProblem[] problems= compilationUnit.getProblems();		ICompilationUnit cu= (ICompilationUnit)compilationUnit.getJavaElement();		List result= new ArrayList();				for (int i= 0; i < problems.length; i++) {			IProblem problem= problems[i];			if (addNLSTag && problem.getID() == IProblem.NonExternalizedStringLiteral) {				TextEdit edit= NLSUtil.createNLSEdit(cu, problem.getSourceStart());				result.add(new GroupedTextEdit(edit, FixMessages.StringFix_AddNonNls_description));			}			if (removeNLSTag && problem.getID() == IProblem.UnnecessaryNLSTag) {				IBuffer buffer= cu.getBuffer();				if (buffer != null) {					TextEdit edit= StringFix.getReplace(problem.getSourceStart(), problem.getSourceEnd() - problem.getSourceStart() + 1, buffer, false);					result.add(new GroupedTextEdit(edit, FixMessages.StringFix_RemoveNonNls_description));				}			}		}		if (result.isEmpty())			return null;				return new StringFix("", compilationUnit, (GroupedTextEdit[])result.toArray(new GroupedTextEdit[result.size()])); //$NON-NLS-1$	}