void () { addAction(new AnAction(UIBundle.messagePointer("move.down.action.name"), Presentation.NULL_STRING, AllIcons.Actions.MoveDown) { @Override public void actionPerformed(final @NotNull AnActionEvent e) { ListUtil.moveSelectedItemsDown(myList); } @Override public void update(final @NotNull AnActionEvent e) { e.getPresentation().setEnabled(ListUtil.canMoveSelectedItemsDown(myList)); } @Override public @NotNull ActionUpdateThread getActionUpdateThread() { return ActionUpdateThread.EDT; } }); }