Instead of reaching into the modifier context from here, why not set the notes from ModifierContext::formatStrokes? I think that approach is a bit cleaner, no?