@Override
            public Boolean visitDeclared(DeclaredType type, Void ignored) {
                TypeElement typeElement;
                try {
                    typeElement = MoreElements.asType(type.asElement());
                } catch (IllegalArgumentException iae) {
                    throw new IllegalArgumentException(type + " does not represent a class or interface.");
                }
                return typeElement.getQualifiedName().contentEquals(clazz.getCanonicalName());
            }
Utilities related to {@link TypeMirror} instances.

@author Gregory Kick
@since 2.0
android/annotation_processors/xposed_hook_compiler/src/main/java/github/tornaco/permission/compiler/common/MoreTypes.java