extend the call graph pruner to allow for other pruning policies than 'keep branch if you find application node on it'