public Annotation ceiling ( Annotation annotation , AnnotationType type ) { if ( annotation == null || type == null ) { return Fragments . detachedEmptyAnnotation ( ) ; } for ( Annotation a : Collect . asIterable ( new NodeIterator ( root , annotation . end ( ) , Integer . MAX_VALUE , type , true ) ) ) { if ( a . isInstance ( type ) && a != annotation ) { return a ; } } return Fragments . detachedEmptyAnnotation ( ) ; }
Ceiling annotation .