code: public static void assertTrueOrInvalidKindForAnnotationException(boolean expression, Element element,
  			Class<? extends Annotation> annotationClazz) {
  		if (!expression) {
  			String msg = String.format("%s %s, only class can be annotated with @%s annotation", element.getKind(),
  					element, annotationClazz.getSimpleName());
  			throw (new InvalidKindForAnnotationException(msg));
  		}
  	}
docs: Assert true or invalid kind for annotation exception.
  
  @param expression
  the expression
  @param element
  the element
  @param annotationClazz
  the annotation clazz