void (final ChangeListOwner dragOwner, final ChangeListDragBean dragBean) { if (!(userObject instanceof LocalChangeList)) { return; } final LocalChangeList dropList = (LocalChangeList)getUserObject(); dragOwner.moveChangesTo(dropList, dragBean.getChanges()); final List<FilePath> toUpdate = new ArrayList<>(); addIfNotNull(toUpdate, dragBean.getUnversionedFiles()); addIfNotNull(toUpdate, dragBean.getIgnoredFiles()); if (!toUpdate.isEmpty()) { dragOwner.addUnversionedFiles(dropList, ContainerUtil.mapNotNull(toUpdate, FilePath::getVirtualFile)); } }