Predicate<Integer> () { if (!(myVisiblePack instanceof VisiblePack)) return Predicates.alwaysFalse(); DataPackBase dataPack = ((VisiblePack)myVisiblePack).getDataPack(); if (!(dataPack instanceof DataPack)) return Predicates.alwaysFalse(); Set<Integer> heads = Collections.singleton(myStorage.getCommitIndex(myRevision, myRoot)); return ((DataPack)dataPack).getPermanentGraph().getContainedInBranchCondition(heads); }