void stripNonCompiledNodes(Node n,Set<String> filesToCompile){
  for (  Node child : n.children()) {
    if (!filesToCompile.contains(child.getSourceFileName())) {
      child.detachFromParent();
    }
  }
}

void stripNonCompiledNodes ( Node n , Set < String > filesToCompile ) { for ( Node child : n . children ( ) ) { if ( ! filesToCompile . contains ( child . getSourceFileName ( ) ) ) { child . detachFromParent ( ) ; } } }
removes the root nodes for all the library files from the source node .
