void (@NotNull Project project, @NotNull DnDEvent event) { Object attachedObject = event.getAttachedObject(); if (attachedObject instanceof ChangeListDragBean) { FileDocumentManager.getInstance().saveAllDocuments(); List<Change> changes = ((ChangeListDragBean)attachedObject).getChanges(); ShelveChangesManager.getInstance(project).shelveSilentlyUnderProgress(changes, true); } }