public static <T extends Comparable<T>> boolean remove(T element, List<T> list)
    {
        int index = get(element, list);
        if (index == -1)
        {
            return false;
        }
        list.remove(index);
        return true;
    }