LexicalIncludePaths { @NotNull public static Matcher matchFolderToRegex(@NotNull Pattern pattern, @NotNull File folder) { return pattern.matcher(FilenameUtils.separatorsToUnix(folder.getPath()) + UNIX_SEPARATOR); }  static boolean hasHeaderExtension(@NotNull String filename); @NotNull static String findCommonParentFolder(@NotNull Collection<String> folders); @NotNull static String trimPathSeparators(@NotNull String path); @NotNull static Matcher matchFolderToRegex(@NotNull Pattern pattern, @NotNull File folder); @NotNull
  static final ImmutableSet<String> HEADER_FILE_EXTENSIONS; }
@Test public void testMatchRegex() { assertThat(LexicalIncludePaths.matchFolderToRegex(Pattern.compile("/.*"), new File("\\header.h")).matches()).isTrue(); assertThat(LexicalIncludePaths.matchFolderToRegex(Pattern.compile("/.*"), new File("/header.h")).matches()).isTrue(); }