String (@Nullable String extraClassifier) { if (StringUtilRt.isEmptyOrSpaces(extraClassifier)) { return myClassifier; } String result = ""; if (MavenConstants.TYPE_TEST_JAR.equals(myType) || "tests".equals(myClassifier)) { result += "test"; } if (!StringUtilRt.isEmptyOrSpaces(extraClassifier)) { result += (!result.isEmpty() ? "-" + extraClassifier : extraClassifier); } return StringUtilRt.isEmptyOrSpaces(result) ? null : result; }