Path (@NotNull String homePath, @NotNull String relativePath) { Path file = Paths.get(homePath, relativePath); if (!Files.exists(file)) { throw new IllegalArgumentException("Cannot find file '" + relativePath + "' under '" + homePath + "' directory"); } return file; }