Collection < UmlDiagram > collectDiagrams ( ) throws IOException { if ( diagramExtensions . isEmpty ( ) ) return Collections . emptySet ( ) ; try { Files . walkFileTree ( imagesDirectory . orElse ( basedir ) . toPath ( ) , this ) ; return unmodifiableCollection ( collected . get ( ) ) ; } finally { collected . remove ( ) ; } }
Collects all generated diagram files by walking the specified path .