This is another case where Paths.createPath(..) is a bit confusing when reading the code. Maybe Paths.concat(..) or Paths.for(a, b, c) - although in the latter case, it would flow better if Paths were just renamed Path.