public boolean isNew(Component component, DefaultIssue issue) {
    if (analysisMetadataHolder.isPullRequest()) {
      return true;
    }

    if (periodHolder.hasPeriod()) {
      if (periodHolder.hasPeriodDate()) {
        return periodHolder.getPeriod().isOnPeriod(issue.creationDate());
      }

      if (isOnBranchUsingReferenceBranch()) {
        return hasAtLeastOneLocationOnChangedLines(component, issue);
      }
    }
    return false;
  }
@Test
  public void isNew_returns_true_for_any_issue_if_pull_request() {
    periodHolder.setPeriod(null);
    analysisMetadataHolder.setBranch(newPr());
    assertThat(newIssueClassifier.isNew(mock(Component.class), mock(DefaultIssue.class))).isTrue();
  }