if (experiment != null)
if (experiment != null && usingExperiment)
  private void experimentFinished() {    if (experiment != null)      trialProgressBar.setValue(experiment.getTrialCount() + 1);    updateControls(false);    runButton.setSelected(false);    runButton.setEnabled(true);    currentTrial = -1;    experimentTimer.stop();  }