private @NotNull Predicate<Integer> getCondition() {
      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);
    }
private @NotNull Predicate<Integer> getCondition()