private static Condition<? super RunnerAndConfigurationSettings> getContainsTypeIdCondition(Collection<String> types) {
    return settings -> {
      if (types.contains(settings.getType().getId())) return true;

      RunConfiguration baseConfiguration = getBaseConfiguration(settings.getConfiguration());
      if (baseConfiguration != null) {
        return types.contains(baseConfiguration.getType().getId());
      }
      return false;
    };
  }
private static Condition<? super RunnerAndConfigurationSettings> getContainsTypeIdCondition(Collection<String> types)