DnDDragStartBean (@NotNull DnDActionInfo info) { if (info.isMove()) { List<Change> changes = VcsTreeModelData.selected(myTree) .iterateUserObjects(Change.class).toList(); List<FilePath> unversionedFiles = VcsTreeModelData.selectedUnderTag(myTree, UNVERSIONED_FILES_TAG) .iterateUserObjects(FilePath.class).toList(); List<FilePath> ignoredFiles = VcsTreeModelData.selectedUnderTag(myTree, IGNORED_FILES_TAG) .iterateUserObjects(FilePath.class).toList(); if (!changes.isEmpty() || !unversionedFiles.isEmpty() || !ignoredFiles.isEmpty()) { return new DnDDragStartBean(new ChangeListDragBean(myTree, changes, unversionedFiles, ignoredFiles)); } } return null; }