Comparator<ActivateToolWindowAction> () { return comparingInt(it -> { int mnemonic = ActivateToolWindowAction.getMnemonicForToolWindow(it.getToolWindowId()); return mnemonic != -1 ? mnemonic : Integer.MAX_VALUE; }); }