@Internal
	protected <T extends Stmt> T nearest(Class<T> cls) {
		if (cls.isAssignableFrom(this.getClass())) {
			return cls.cast(this);
		}
		if (parent == null) {
			return null;
		}
		return parent.nearest(cls);
	}
Get the innermost statement of the given class containing this statement

<p>
This is used to implement "truncation" statements like "break", "continue", and "result".

@param <T> the type of the statement sought
@param cls the class of the statement sought
@return the found statement or null
Ghidra/Features/SystemEmulation/src/main/java/ghidra/pcode/struct/AbstractStmt.java