String (@Nullable TextAttributesKey key) { if (key == null) { return ""; } final String keyName = key.getExternalName(); final TextAttributesKey fallbackKey = key.getFallbackAttributeKey(); TestCase.assertNotSame(fallbackKey, key); return fallbackKey == null ? keyName : (keyName + " => " + serializeTextAttributeKey(fallbackKey)); }