public static boolean isType(Element element) {
        return element.getKind().isClass() || element.getKind().isInterface();
    }
Static utility methods pertaining to {@link Element} instances.

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