public static List<Class<?>> getAllInterfaces(final Class<?> cls) {
        if (cls == null) {
            return null;
        }

        final LinkedHashSet<Class<?>> interfacesFound = new LinkedHashSet<>();
        getAllInterfaces(cls, interfacesFound);

        return new ArrayList<>(interfacesFound);
    }
<p>Gets a {@code List} of all interfaces implemented by the given
class and its superclasses.</p>

<p>The order is determined by looking through each interface in turn as
declared in the source file and following its hierarchy up. Then each
superclass is considered in the same way. Later duplicates are ignored,
so the order is maintained.</p>

@param cls the class to look up, may be {@code null}
@return the {@code List} of interfaces in order,
{@code null} if null input
fastexcel-core/src/main/java/cn/idev/excel/util/ClassUtils.java