public static String combineMessages(String prefix, List<ArtifactImportError> artifactImportErrors) {
        String errors = ArtifactImportError.combineMessages(artifactImportErrors);
        if (!errors.isEmpty()) {
            return prefix + "\n\n" + errors;
        } else {
            return prefix;
        }

    }
public static String combineMessages ( String prefix , List < ArtifactImportError > artifactImportErrors ) { String errors = ArtifactImportError . combineMessages ( artifactImportErrors ) ; if ( ! errors . isEmpty ( ) ) { return prefix + "\n\n" + errors ; } else { return prefix ; } }
@return append artifacts errors to the prefix and return combined string. When artifactImportErrors is empty only a prefix is returned.