@Override
    public @NotNull String getName() {
      return flattenPackages.isSelected()
             ? IdeBundle.message("action.hide.empty.middle.packages")
             : IdeBundle.message("action.compact.empty.middle.packages");
    }
@Override
    public @NotNull String getName()