String (@NotNull String parent, @NotNull String child, boolean win) { String separator = getSeparator(win); String path; if (parent.endsWith(separator)) { path = parent + child; } else { path = parent + separator + child; } return path; }