String (@Nullable String typeName) { if (typeName == null) { return null; } if (typeName.endsWith(IMPL_SUFFIX) && typeName.length() > IMPL_SUFFIX.length()) { return typeName.substring(0, typeName.length() - IMPL_SUFFIX.length()); } return typeName; }