public static Transition createWithCodePointRange(ATNState target, int codePointFrom, int codePointTo) {
		return codePointFrom == codePointTo
				? new AtomTransition(target, codePointFrom)
				: new RangeTransition(target, codePointFrom, codePointTo);
	}
Return new {@link AtomTransition} if range represents one atom else {@link SetTransition}.
runtime/Java/src/org/antlr/v4/runtime/atn/CodePointTransitions.java