return unitType.getAnnotation( SiDerivedUnit.class ) != null;
}
@Nonnull
public static List<? extends Class<? extends Annotation>> getDerivedFrom( @Nonnull Class<? extends Annotation> unitType ) {
SiDerivedUnit derived = unitType.getAnnotation( SiDerivedUnit.class );
if ( derived == null ) {
throw new IllegalArgumentException( "Not derived. " + unitType );
}
return new ArrayList<Class<? extends Annotation>>( Arrays.asList( derived.value() ) );
}