public static void checkBothNotNull ( Object object1 , Object object2 , String errorMsg ) { check ( ! ( object1 == null && object2 == null ) , errorMsg ) ; }
Checks that at least one of object1 or object2 is not null