Transferable (JComponent c) { Object[] selectedValues = list.getSelectedValues(); PsiElement[] copy = new PsiElement[selectedValues.length]; for (int i = 0; i < selectedValues.length; i++) { copy[i] = (PsiElement)selectedValues[i]; } return PsiCopyPasteManager.newTransferable(copy); }