Bug 123625 [cleanup] Generated Serial Version UIDs clean up
Add a fix to the cleanup refactoring which generates missing generated serial version IDs. The code of the existing serial version quickfix has been extracted and is now available in class SerialVersionComputationHelper. For details on how to use this class please refer to the existing quickfix.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/SerialVersionSubProcessor.java
Assert.isNotNull(proposals);
		final CompilationUnit root= context.getASTRoot();
		final ASTNode selection= location.getCoveredNode(root);
		if (selection != null) {
			Name name= null;
			if (selection instanceof SimpleType) {
				final SimpleType type= (SimpleType) selection;
				name= type.getName();
			} else if (selection instanceof ParameterizedType) {
				final ParameterizedType type= (ParameterizedType) selection;
				final Type raw= type.getType();
				if (raw instanceof SimpleType)
					name= ((SimpleType) raw).getName();
				else if (raw instanceof QualifiedType)
					name= ((QualifiedType) raw).getName();
			} else if (selection instanceof Name) {
				name= (Name) selection;
			}
			if (name != null) {
				final SimpleName simple= name.isSimpleName() ? (SimpleName) name : ((QualifiedName) name).getName();
				final ICompilationUnit unit= context.getCompilationUnit();
				if (JavaModelUtil.isEditable(unit)) {
					proposals.add(new SerialVersionDefaultProposal(unit, simple));
					proposals.add(new SerialVersionHashProposal(unit, simple));
				}
			}
		}
	}
}