DescendentBasedRootFilter (OrderRootType rootType, boolean jarDirectory, @NotNull FileType fileType, String presentableRootTypeName) { return new DescendentBasedRootFilter(rootType, jarDirectory, presentableRootTypeName, file -> FileTypeRegistry.getInstance().isFileOfType(file, fileType)); }