void () { ApplicationManager.getApplication().executeOnPooledThread(() -> { for (MyFontItem item : myItems) { if (FontFamilyService.isMonospaced(item.myFamilyName)) { myMonospacedFamilies.add(item.myFamilyName); } item.myFont = JBUI.Fonts.create(item.myFamilyName, FontPreferences.DEFAULT_FONT_SIZE); item.myFontCanDisplayName = item.myFont.canDisplayUpTo(item.myFamilyName) == -1; } updateMonospacedInfo(); }); }