private boolean isConfigurationAssigned(RunConfiguration configuration) {
    for (T task : RunManagerEx.getInstanceEx(myProject).getBeforeRunTasks(configuration, getTaskId())) {
      if (isRunning(task))
        return true;
    }
    return false;
  }
private boolean isConfigurationAssigned(RunConfiguration configuration)