private Pair<Boolean, Boolean> isEnabledAndVisible(@NotNull ConfigurationContext context) {
    RunnerAndConfigurationSettings configuration = findExisting(context);
    if (configuration == null) {
      configuration = context.getConfiguration();
    }

    ProgramRunner<?> runner = configuration == null ? null : getRunner(configuration.getConfiguration());
    if (runner == null) {
      return Pair.create(false, false);
    }

    Project project = context.getProject();
    return Pair.create(!ExecutionManager.getInstance(project).isStarting(
      configuration.getUniqueID(), myExecutor.getId(), runner.getRunnerId()), true);
  }
private Pair<Boolean, Boolean> isEnabledAndVisible(@NotNull ConfigurationContext context)