private static boolean isFile(@Nullable Entry left, @Nullable Entry right) {
    if (left != null) return !left.isDirectory();
    if (right != null) return !right.isDirectory();
    return false;
  }
private static boolean isFile(@Nullable Entry left, @Nullable Entry right)