void () { ApplicationManager.getApplication().invokeLater( () -> { for (MyFontItem item : myItems) { item.myIsMonospaced = myMonospacedFamilies.contains(item.myFamilyName); } if (myNoFontItem == null) { // Primary font myItems.removeIf(item -> !item.myFontCanDisplayName); } myIsUpdating = false; Collections.sort(myItems, new MyFontItemComparator()); fireContentsChanged(this, -1, -1); }, ModalityState.any()); }