How to intercept Run/Debug operations and get/set the run configrations?

How to intercept Run/Debug operations and get/set the run configrations? 

MessageBus messageBus = project.getMessageBus();
MessageBusConnection connection = messageBus.connect();
connection.subscribe(? ? ?);
0
1 comment
Official comment

See com.intellij.execution.RunManagerListener and com.intellij.execution.ExecutionManager#EXECUTION_TOPIC

Please sign in to leave a comment.