String (@NotNull String rootName, @NotNull String gradlePath) { return (gradlePath.startsWith(":") ? rootName + "." : "") + Arrays.stream(gradlePath.split(":")) .filter(s -> !s.isEmpty()) .collect(Collectors.joining(".")); }