void (@NotNull FileTypeWithDescriptor newFtd) { myFileTypesPerPlugin.computeIfAbsent(newFtd.pluginDescriptor, __ -> ConcurrentCollectionFactory.createConcurrentSet()).add(newFtd); if (ApplicationManager.getApplication().isUnitTestMode()) { checkUnique(); } else { myCheckDuplicatedAlarm.cancelAllRequests(); myCheckDuplicatedAlarm.addRequest(() -> { checkUnique(); }, 400); } }