String (@NotNull JavaSourceRootProperties properties) { StringBuilder buffer = new StringBuilder(); if (properties.isForGeneratedSources()) { buffer.append(" [generated]"); } String packagePrefix = properties.getPackagePrefix(); if (!packagePrefix.isEmpty()) { buffer.append(" (").append(packagePrefix).append(")"); } return buffer.length() > 0 ? buffer.toString() : null; }