public static Stream<VirtualFile> streamPomFiles(@Nullable Project project, @Nullable VirtualFile root) {
    if (root == null) return Stream.empty();
    return Stream.of(root.getChildren()).filter(file -> isPomFile(project, file));
  }
public static Stream<VirtualFile> streamPomFiles(@Nullable Project project, @Nullable VirtualFile root)