private static boolean containsNonNull ( Object ... items ) { for ( Object item : items ) { if ( item != null ) { return true ; } } return false ; }
Helper method to avoid long chains of non null checks