if (experiment.isRunInProgress()) { Object[] options = { "View", "Copy", "Cancel" }; experiment = queryUser(experiment, options); } else if (!experiment.isEditable()) {
if (!experiment.isEditable()) {
  public void runExperimentBuilder(Experiment experiment,                                    boolean alwaysNew) {    // if this experiment is being edited, then don't edit again    if (isExperimentInEditor(experiment))      return;    // if the experiment is being run, it can't be edited    if (experiment.isRunInProgress()) {      Object[] options = { "View", "Copy", "Cancel" };      experiment = queryUser(experiment, options);    } else if (!experiment.isEditable()) {      // otherwise editability can be overwritten      Object[] options = { "Edit", "View", "Copy", "Cancel" };      experiment = queryUser(experiment, options);    }    // if it's editable, then just edit it    if (experiment != null)      runExperimentBuilderWorker(experiment, alwaysNew);  }