public boolean isEnabled() {
    return analysisMetadataHolder.isPullRequest() || periodHolder.hasPeriodDate() ||
      (periodHolder.hasPeriod() && isOnBranchUsingReferenceBranch());
  }
@Test
  public void isEnabled_returns_false() {
    periodHolder.setPeriod(null);
    assertThat(newIssueClassifier.isEnabled()).isFalse();
  }