Bug 123946 [quick assist] "Add keyword 'final' to all unchanged variables and properties"
This function can be provide with the "Format" function
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickAssistProcessor.java
rewrite.replace(assignParent, block, null);
			} else {
				rewrite.remove(assignParent, null);
			}
		}
		proposal.setEndPosition(rewrite.track(fragment.getName()));
		resultingCollections.add(proposal);
		return true;
	}
	private static boolean getFixDeprecationProposals(final IInvocationContext context, final ASTNode node, final Collection resultingCollections) {
		Name name;
		if (node instanceof Name)
			name= (Name) node;
		else
			return false;
		final IBinding binding= name.resolveBinding();
		if (binding == null || !binding.isDeprecated())
			return false;
		String fileName= null;
		if (binding instanceof IVariableBinding)
			fileName= DelegateFieldCreator.getRefactoringScriptName((IVariableBinding) binding);
		else if (binding instanceof IMethodBinding) {
			fileName= DelegateMethodCreator.getRefactoringScriptName((IMethodBinding) binding);
		}
		if (fileName == null)
			return false;
		final ICompilationUnit unit= context.getCompilationUnit();
		if (unit == null || !unit.exists())
			return false;
		final IProject project= unit.getJavaProject().getProject();