contentsDisplayOptional.get();
if (contentsDisplay.getEditingState() == TargetContentsDisplay.EditingState.SAVED) {
// If current display is in saved state, we update both in
// editor and cached value
contentsDisplay.setValueAndCreateNewEditors(updatedTU);
contentsDisplay.refresh();
} else {
// editor is in saving state or unsaved state, we don't want to
// update value in editor, just the cached value.
contentsDisplay.updateCachedTargetsAndVersion(
updatedTU.getTargets(), updatedTU.getVerNum(),