Font (int size) { return ReadAction.compute(() -> { EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme(); Font font = scheme.getFont(EditorFontType.PLAIN).deriveFont((float)size); return UIUtil.getFontWithFallback(font); }); }