function isIdentifierUsedInSegment(segment, identifier) {
				const segmentInfo = target.segments[segment.id];

				return (
					segmentInfo.first &&
					segmentInfo.last &&
					segmentInfo.first.range[0] <= identifier.range[0] &&
					identifier.range[1] <= segmentInfo.last.range[1]
				);
			}
Checks whether the given identifier is used in the segment.
@param {CodePathSegment} segment The code path segment.
@param {Identifier} identifier The identifier to check.
@returns {boolean} `true` if the identifier is used in the segment.