@Override
        public boolean canImport(TransferHandler.TransferSupport transferInfo) {
            if (!transferInfo.isDataFlavorSupported(DataFlavor.stringFlavor)) {
                return false;
            }
            JList.DropLocation dropLocation = (JList.DropLocation) transferInfo.getDropLocation();
            if (dropLocation.getIndex() == -1) {
                return false;
            }
            return true;
        }