docs: @Nullable
      private static <T> ArrayList<T> excludeObject(@Nullable ArrayList<T> list, @Nullable T target, boolean exclude) {
          if (target != null) {
              if (exclude) {
                  list = ArrayListManager.add(list, target);
              } else {
                  list = ArrayListManager.remove(list, target);
              }
          }
          return list;
      }