String (char c, @NotNull TextAttributesKey textAttributesKey, @NotNull String fallback) { EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme(); TextAttributes textAttributes = scheme.getAttributes(textAttributesKey); int style = textAttributes != null ? textAttributes.getFontType() : Font.PLAIN; FontInfo fallbackFont = ComplementaryFontsRegistry.getFontAbleToDisplay(c, style, scheme.getFontPreferences(), null); return fallbackFont.canDisplay(c) ? String.valueOf(c) : fallback; }