JavaType[] superClasses = getSuperClasses(); for (int i = 0; i < superClasses.length; i++) { JavaType superClass = superClasses[i]; final JavaType[] superInterfaces = superClass.getAllInterfaces(); interfaceSet.addAll(Arrays.asList(superInterfaces)); } final JavaType[] ret = new JavaType[interfaceSet.size()]; interfaceSet.toArray(ret);
    public JavaType[] getAllInterfaces()    {        JavaType[] ret = new JavaType[interfaceNames.length];        for (int i = 0; i < ret.length; i++)        {            ret[i] = repository.findTypeByName(interfaceNames[i]);        }        return ret;    }