void (@NotNull Sdk sdk, @NotNull Processor<? super SdkModificator> processor) { TransactionGuard.getInstance().assertWriteSafeContext(ModalityState.defaultModalityState()); ApplicationManager.getApplication().invokeAndWait(() -> { final SdkModificator effectiveModificator = sdk.getSdkModificator(); if (processor.process(effectiveModificator)) { effectiveModificator.commitChanges(); } }); }