/** * Create a search type from a potentially nullable set of string. If they are null, or empty, then allTypes is * returned otherwise the type will be returned */ public static SearchTypes fromNullableTypes( final String... types ) { if ( isEmpty( types ) ) { return allTypes(); } return fromTypes( types ); }