question: private void checkIsCorrectClass ( ) { if ( checkIsSubClass ( ACT_NAME ) ) { type = ElementType . ACTTIVITY ; } else if ( checkIsSubClass ( FRAG_NAME ) || checkIsSubClass ( V4_FRAG_NAME ) ) { type = ElementType . FRAGMENT ; } else { throw new IllegalArgumentException ( String . format ( "class %s must be extends from %s or %s or %s" , element . getQualifiedName ( ) , ACT_NAME , FRAG_NAME , V4_FRAG_NAME ) ) ; } }
target:  check out if is extends from Activity or fragment