void (@NotNull DataContext dataContext) { if (myEditor == null) return; LwInspectionSuppression[] suppressions = LW_INSPECTION_SUPPRESSION_ARRAY_DATA_KEY.getData(dataContext); if (suppressions != null) { if (!myEditor.ensureEditable()) return; for(LwInspectionSuppression suppression: suppressions) { myEditor.getRootContainer().removeInspectionSuppression(suppression); } myEditor.refreshAndSave(true); } else { DeleteProvider baseProvider = PlatformDataKeys.DELETE_ELEMENT_PROVIDER.getData(myEditor); if (baseProvider != null) { baseProvider.deleteElement(dataContext); } } }