Object (@NotNull final String dataId) { if (GuiEditor.DATA_KEY.is(dataId)) { return myEditor; } if (PlatformDataKeys.DELETE_ELEMENT_PROVIDER.is(dataId)) { return myDeleteProvider; } if (PlatformDataKeys.COPY_PROVIDER.is(dataId) || PlatformDataKeys.CUT_PROVIDER.is(dataId) || PlatformDataKeys.PASTE_PROVIDER.is(dataId)) { return myEditor == null ? null : myEditor.getData(dataId); } if (LW_INSPECTION_SUPPRESSION_ARRAY_DATA_KEY.is(dataId)) { Collection<LwInspectionSuppression> elements = getSelectedElements(LwInspectionSuppression.class); return elements.size() == 0 ? null : elements.toArray(LwInspectionSuppression.EMPTY_ARRAY); } if (PlatformCoreDataKeys.HELP_ID.is(dataId)) { return ourHelpID; } if (PlatformCoreDataKeys.FILE_EDITOR.is(dataId)) { return myFormEditor; } if (PlatformCoreDataKeys.BGT_DATA_PROVIDER.is(dataId)) { RadComponent selectedComponent = getSelectedComponent(); if (selectedComponent == null) { return null; } return (DataProvider)slowId -> getSlowData(selectedComponent, slowId); } return null; }