// Path: src/main/java/se/bjurr/gitchangelog/internal/util/Preconditions.java
// public static boolean isNullOrEmpty(final String it) {
//   return it == null || it.isEmpty();
// }


import static se.bjurr.gitchangelog.internal.settings.SettingsIssueType.GITHUB;
import static se.bjurr.gitchangelog.internal.settings.SettingsIssueType.GITLAB;
import static se.bjurr.gitchangelog.internal.settings.SettingsIssueType.JIRA;
import static se.bjurr.gitchangelog.internal.settings.SettingsIssueType.REDMINE;
import static se.bjurr.gitchangelog.internal.util.Preconditions.isNullOrEmpty;
import java.util.ArrayList;
import java.util.List;
package se.bjurr.gitchangelog.internal.settings;



public class IssuesUtil {
  private final Settings settings;

  public IssuesUtil(final Settings settings) {
    this.settings = settings;
  }

  public List<SettingsIssue> getIssues() {
    final List<SettingsIssue> issues = new ArrayList<>(this.settings.getCustomIssues());
    if (this.settings.isJiraEnabled()) {
      this.addJira(issues);
    }
    if (this.settings.isGitHubEnabled()) {
      this.addGitHub(issues);
    }
    if (this.settings.isGitLabEnabled()) {
      this.addGitLab(issues);
    }
    if (this.settings.isRedmineEnabled()) {
      this.addRedmine(issues);
    }
    return issues;
  }

  private void addGitHub(final List<SettingsIssue> issues) {
// Path: src/main/java/se/bjurr/gitchangelog/internal/util/Preconditions.java
// public static boolean isNullOrEmpty(final String it) {
//   return it == null || it.isEmpty();
// }


// Path: src/main/java/se/bjurr/gitchangelog/internal/settings/IssuesUtil.java
import static se.bjurr.gitchangelog.internal.settings.SettingsIssueType.GITHUB;
import static se.bjurr.gitchangelog.internal.settings.SettingsIssueType.GITLAB;
import static se.bjurr.gitchangelog.internal.settings.SettingsIssueType.JIRA;
import static se.bjurr.gitchangelog.internal.settings.SettingsIssueType.REDMINE;
import static se.bjurr.gitchangelog.internal.util.Preconditions.isNullOrEmpty;
import java.util.ArrayList;
import java.util.List;

package se.bjurr.gitchangelog.internal.settings;



public class IssuesUtil {
  private final Settings settings;

  public IssuesUtil(final Settings settings) {
    this.settings = settings;
  }

  public List<SettingsIssue> getIssues() {
    final List<SettingsIssue> issues = new ArrayList<>(this.settings.getCustomIssues());
    if (this.settings.isJiraEnabled()) {
      this.addJira(issues);
    }
    if (this.settings.isGitHubEnabled()) {
      this.addGitHub(issues);
    }
    if (this.settings.isGitLabEnabled()) {
      this.addGitLab(issues);
    }
    if (this.settings.isRedmineEnabled()) {
      this.addRedmine(issues);
    }
    return issues;
  }

  private void addGitHub(final List<SettingsIssue> issues) {
    if (!isNullOrEmpty(this.settings.getGitHubIssuePattern())) {