Bug 89013 Changes to ResultCollector --> API
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/java/ResultCollector.java
* @param length the new replacement length, relative to the code assist
	 *        offset. Must be equal to or greater than zero.
	 */
	public final void setReplacementLength(int length) {
		Assert.isLegal(length >= 0);
		fUserReplacementLength= length;
	}
	/**
	 * Computes the relevance for a given <code>CompletionProposal</code>.
	 * <p>
	 * Subclasses may replace, but usually should not need to.
	 * </p>
	 * @param proposal the proposal to compute the relevance for
	 * @return the relevance for <code>proposal</code>
	 */
	protected int computeRelevance(CompletionProposal proposal) {
		final int multiplier= 16;
		switch (proposal.getKind()) {
			case CompletionProposal.PACKAGE_REF:
				return proposal.getRelevance() * multiplier + 0;
			case CompletionProposal.LABEL_REF:
				return proposal.getRelevance() * multiplier  + 1;
			case CompletionProposal.KEYWORD:
				return proposal.getRelevance() * multiplier  + 2;
			case CompletionProposal.TYPE_REF:
			case CompletionProposal.ANONYMOUS_CLASS_DECLARATION:
				return proposal.getRelevance() * multiplier  + 3;
			case CompletionProposal.METHOD_REF:
			case CompletionProposal.METHOD_NAME_REFERENCE:
			case CompletionProposal.METHOD_DECLARATION: