void (@NotNull Sdk newSdk, @Nullable java.util.function.Consumer<? super Sdk> updateTree) { myModified = true; try { Sdk editableCopy = (Sdk)newSdk.clone(); myProjectSdks.put(newSdk, editableCopy); if (updateTree != null) { updateTree.accept(editableCopy); } mySdkEventsDispatcher.getMulticaster().sdkAdded(editableCopy); } catch (CloneNotSupportedException e) { LOG.error(e); } }