SerialVersionDefaultProposal proposal= new SerialVersionDefaultProposal(CorrectionMessages.getString("SerialVersionSubProcessor.createdefault.description"), unit, simple); if (proposal.canApply()) proposals.add(proposal);
	public static final void getSerialVersionProposals(final IInvocationContext context, final IProblemLocation location, final Collection proposals) {		Assert.isNotNull(context);		Assert.isNotNull(location);		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 Name) {				name= (Name) selection;			}			final SimpleName simple= name.isSimpleName() ? (SimpleName) name : ((QualifiedName) name).getName();			final ICompilationUnit unit= context.getCompilationUnit();			if (JavaModelUtil.isEditable(unit)) {				SerialVersionDefaultProposal proposal= new SerialVersionDefaultProposal(CorrectionMessages.getString("SerialVersionSubProcessor.createdefault.description"), unit, simple); //$NON-NLS-1$				if (proposal.canApply())					proposals.add(proposal);				proposal= new SerialVersionHashProposal(CorrectionMessages.getString("SerialVersionSubProcessor.createhashed.description"), unit, simple); //$NON-NLS-1$				if (proposal.canApply())					proposals.add(proposal);			}		}	}