Object (@NotNull DataProvider dataProvider) { final Editor editor = DataManagerImpl.validateEditor(CommonDataKeys.EDITOR.getData(dataProvider), PlatformCoreDataKeys.CONTEXT_COMPONENT.getData(dataProvider)); if (editor instanceof EditorEx) { return ((EditorEx) editor).getPasteProvider(); } return null; }