public Selection select(AssemblyResolutionResults rr, AssemblyPatternBlock ctx)
			throws AssemblySemanticException {
		List<AssemblyResolvedPatterns> sorted = filterCompatibleAndSort(rr, ctx);

		// Pick just the first
		AssemblyResolvedPatterns res = sorted.get(0);
		// Just set the mask to ffs (effectively choosing 0 for the omitted bits)
		return new Selection(res.getInstruction().fillMask(), res.getContext());
	}
Select an instruction from the possible results.

<p>
This must select precisely one resolved constructor from the results given back by the
assembly resolver. This further implies the mask of the returned result must consist of all
1s. If no selection is suitable, this must throw an exception.

<p>
By default, this method selects the shortest instruction that is compatible with the given
context and takes 0 for bits that fall outside the mask. If all possible resolutions produce
errors, an exception is thrown.

@param rr the collection of resolved constructors
@param ctx the applicable context.
@return a single resolved constructor with a full instruction mask.
@throws AssemblySemanticException if all the given results are semantic errors
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/assembler/AssemblySelector.java