void () { for (Editor editor : EditorFactory.getInstance().getAllEditors()) { if (editor.getComponent().isShowing()) { myEditorsVisibleOnCommandStart.add(editor); } ((ScrollingModelImpl)editor.getScrollingModel()).finishAnimation(); myCurrentCommandStart = System.currentTimeMillis(); } }