boolean matchComponent(@Nullable String path) {
    return path != null && componentPattern.match(path);
  }
@Test
  public void match_file() {
    String javaFile = "org/foo/Bar.xoo";
    assertThat(new IssuePattern("org/foo/Bar*", "*").matchComponent(javaFile)).isTrue();
    assertThat(new IssuePattern("org/foo/*", "*").matchComponent(javaFile)).isTrue();
    assertThat(new IssuePattern("**/*ar*", "*").matchComponent(javaFile)).isTrue();
    assertThat(new IssuePattern("org/**/?ar.xoo", "*").matchComponent(javaFile)).isTrue();
    assertThat(new IssuePattern("**", "*").matchComponent(javaFile)).isTrue();

    assertThat(new IssuePattern("org/other/Hello", "*").matchComponent(javaFile)).isFalse();
    assertThat(new IssuePattern("org/foo/Hello", "*").matchComponent(javaFile)).isFalse();
    assertThat(new IssuePattern("org/**/??ar.xoo", "*").matchComponent(javaFile)).isFalse();
    assertThat(new IssuePattern("org/**/??ar.xoo", "*").matchComponent(null)).isFalse();
    assertThat(new IssuePattern("org/**/??ar.xoo", "*").matchComponent("plop")).isFalse();
  }