public Instruction findFirstIntersectingInstruction(Address min, Address max) {
		Instruction intersectInstr = null;
		for (Instruction instr : instructionMap.values()) {
			Address instrMin = instr.getMinAddress();
			if (instrMin.compareTo(max) > 0) {
				continue;
			}
			Address instrMax = instr.getMaxAddress();
			if (instrMax.compareTo(min) < 0) {
				continue;
			}
			if (intersectInstr != null && intersectInstr.getAddress().compareTo(instrMin) < 0) {
				continue;
			}
			intersectInstr = instr;
		}
		return intersectInstr;
	}
Find the first instruction within this block which intersects the specified range.
This method should be used sparingly since it uses a brute-force search.
@param min the minimum intersection address
@param max the maximum intersection address
@return instruction within this block which intersects the specified range or null
if not found
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/InstructionBlock.java