IntermediateFolderUtils { @NonNull public static TransformInput computeNonIncrementalInputFromFolder( @NonNull File folder, @NonNull Set<ContentType> requiredTypes, @NonNull Set<Scope> requiredScopes) { final List<JarInput> jarInputs = Lists.newArrayList(); final List<DirectoryInput> directoryInputs = Lists.newArrayList(); File jarsFolder = new File(folder, JARS); if (jarsFolder.isDirectory()) { parseTypeLevelFolders( jarsFolder, requiredTypes, requiredScopes, new InputGenerator() { @Override public boolean accept(@NonNull File file) { return file.isFile() && file.getName().endsWith(DOT_JAR); } @Override public void generate( @NonNull File file, @NonNull Set<ContentType> types, @NonNull Set<Scope> scopes) { jarInputs.add(new ImmutableJarInput( file.getName().substring(0, file.getName().length() - DOT_JAR.length()), file, Status.NOTCHANGED, types, scopes)); } }); } File foldersFolder = new File(folder, FOLDERS); if (foldersFolder.isDirectory()) { parseTypeLevelFolders( foldersFolder, requiredTypes, requiredScopes, new InputGenerator() { @Override public boolean accept(@NonNull File file) { return file.isDirectory(); } @Override public void generate(@NonNull File file, @NonNull Set<ContentType> types, @NonNull Set<Scope> scopes) { directoryInputs.add(new ImmutableDirectoryInput( file.getName(), file, types, scopes)); } }); } return new ImmutableTransformInput(jarInputs, directoryInputs, folder); }  @NonNull static File getContentLocation(
            @NonNull File rootLocation,
            @NonNull String name,
            @NonNull Set<ContentType> types,
            @NonNull Set<Scope> scopes,
            @NonNull Format format); @NonNull static TransformInput computeNonIncrementalInputFromFolder(
            @NonNull File folder,
            @NonNull Set<ContentType> requiredTypes,
            @NonNull Set<Scope> requiredScopes); @NonNull static IncrementalTransformInput computeIncrementalInputFromFolder(
            @NonNull File rootLocation,
            @NonNull Set<ContentType> requiredTypes,
            @NonNull Set<Scope> requiredScopes); static final String FOLDERS; static final String JARS; }
@Test public void testComputeNonIncrementalInputFromFolder() throws Exception { }