private static @Nullable Set<String> collectIncludedChangeListsIds(@NotNull Project project, @NotNull Collection<? extends Change> changes) {
    if (!ChangeListManager.getInstance(project).areChangeListsEnabled()) return null;

    HashSet<String> ids = new HashSet<>();
    for (Change change : changes) {
      if (change instanceof ChangeListChange changeListChange) {
        ids.add(changeListChange.getChangeListId());
      }
      else {
        return null; // Show all changelists
      }
    }
    return ids;
  }
private static @Nullable Set<String> collectIncludedChangeListsIds(@NotNull Project project, @NotNull Collection<? extends Change> changes)