I'd like to catch the ENTER key event within a method. The default behavior is that an empty Statement is created. I tried to add an action map, where I catch INSERT actions and added it to my Statement_Editor. This works for statements, but not for placing the caret at curly braces of methods, control flow, etc. and pressing ENTER there. Thus, I don't know a generic way. Any hints?
It would also be nice, if someone could point me to the location in base language, where this placeholder statement is created. I couldn't find the corresponding action...