extracted generic parts of editor.common.generated
better support for origin tracking in messages