docs: @SuppressWarnings("squid:S1172")
      private void onCheckBoxChange(final ValueChangeEvent event) {
          if (hasCreatePermission() || hasUpdatePermission()) {
              if (!getValueTextArea().getValue().isEmpty() && !getKeyTextField().getValue().isEmpty()) {
                  getMetadataWindow().setSaveButtonEnabled(true);
              } else {
                  getMetadataWindow().setSaveButtonEnabled(false);
              }
          }
  
      }