@@ -0,0 +1,1014 @@
+package com.sys1yagi.fragmentcreator.util;%0A%0Aimport java.util.Map;%0A%0Aimport javax.lang.model.element.AnnotationMirror;%0Aimport javax.lang.model.element.AnnotationValue;%0Aimport javax.lang.model.element.ExecutableElement;%0Aimport javax.lang.model.type.TypeMirror;%0A%0Apublic class MirrorUtils %7B%0A%0A    public static AnnotationValue findAnnotationValue(AnnotationMirror annotationMirror, String name) %7B%0A        for (Map.Entry%3C? extends ExecutableElement, ? extends AnnotationValue%3E entry%0A                : annotationMirror.getElementValues().entrySet()) %7B%0A            if (entry.getKey().getSimpleName().contentEquals(name)) %7B%0A                return entry.getValue();%0A            %7D%0A        %7D%0A        return null;%0A    %7D%0A%0A    public static TypeMirror findAnnotationValueAsTypeMirror(AnnotationMirror annotationMirror, String name) %7B%0A        AnnotationValue value = findAnnotationValue(annotationMirror, name);%0A        if (value != null) %7B%0A            return (TypeMirror) value.getValue();%0A        %7D%0A        return null;%0A    %7D%0A%0A%7D%0A

Add MirrorUtils.