void (DnDEvent event) { TagButton replaceButton = getReplaceButton(event); if (replaceButton == null ) return; TaskButton button = (TaskButton)event.getAttachedObject(); int i = myTags.indexOf(replaceButton); myTags.remove(button); myTags.add(i, button); buildPanel(); myChangeListener.run(); IdeFocusManager.getInstance(myConfiguration.getProject()).requestFocus(button, false); }