protected void assertDirectory(@NotNull Target target) {
    assertFile(target);
    if (!target.getFile().isDirectory()) {
      throw new IllegalArgumentException("Target should be directory " + target);
    }
  }
protected void assertDirectory(@NotNull Target target)