private static boolean isDesignerClass ( Class < ? > type ) { return Stream . of ( type . getDeclaredFields ( ) ) . anyMatch ( field -> TestDesigner . class . isAssignableFrom ( field . getType ( ) ) ) ; }
Searches for field of type test designer .