protected void assertFile(@NotNull Target target) {
    if (!target.isFile()) {
      throw new IllegalArgumentException("Target should be file " + target);
    }
  }
protected void assertFile(@NotNull Target target)