void (@NotNull RegExpInspectionConfiguration configuration) { // modify from single (event) thread, to prevent race conditions. ApplicationManager.getApplication().invokeLater(() -> { final String shortName = configuration.getUuid(); final HighlightDisplayKey key = HighlightDisplayKey.find(shortName); if (key != null) { if (!isMetaDataChanged(configuration, key)) return; HighlightDisplayKey.unregister(shortName); } final String suppressId = configuration.getSuppressId(); final String name = configuration.getName(); if (suppressId == null) { HighlightDisplayKey.register(shortName, () -> name, SHORT_NAME); } else { HighlightDisplayKey.register(shortName, () -> name, suppressId, SHORT_NAME); } }, ModalityState.nonModal()); }