private static String generatedDescription(AnnotatedElement element) {
        if (element instanceof Method) {
            Method method = (Method) element;
            return method.getName() + "() of " + method.getDeclaringClass().getSimpleName();
        } else if (element instanceof Class) {
            return "class " + ((Class<?>)element).getName();

        }
        return element.toString();
    }