void (@NotNull Set<ProgressKey> oldKeys) { synchronized (myLock) { Set<ProgressKey> newKeys = getRunningKeys(); if (!oldKeys.equals(newKeys)) { fireNotification(listener -> listener.progressChanged(newKeys)); } } }