EditorAction `doExecute` not being invoked when other plugins are reading same document

You can also check example implementations in open source plugins at IntelliJ Platform Explorer.