https://nl.mathworks.com/help/simulink/slref/getcallbackannotation.html
getCallbackAnnotation - Get annotation executing callback - MATLAB
This MATLAB function gets the annotation from which a callback was invoked.
getannotationexecutingcallbackmatlab