breandan
11/26/2016, 7:05 PMobject
declarations (cf. https://kotlinlang.org/docs/reference/object-declarations.html#object-declarations), so instead of writing ActionManager.getInstance().getAction("SomeAction").doSomething()
, you can just write SomeAction.doSomething()
. The API has lots of calls similar to SomeManager.getInstance()
(cf. https://github.com/JetBrains/intellij-community/search?utf8=%E2%9C%93&q=Manager.getInstance%28%29&type=Code)