void (@NotNull Editor editor, Caret caret, DataContext dataContext) { TextRange range = null; if (myTransferable != null) { TextRange[] ranges = EditorCopyPasteHelper.getInstance().pasteTransferable(editor, myTransferable); if (ranges != null && ranges.length == 1) { range = ranges[0]; } } editor.putUserData(EditorEx.LAST_PASTED_REGION, range); }