public static boolean isValid(DataBindingContext context) {
IObservableList validationStatusProviders = context.getValidationStatusProviders();
for (Object object : validationStatusProviders) {
if (object instanceof ValidationStatusProvider) {
ValidationStatusProvider provider = (ValidationStatusProvider) object;
IObservableValue validationStatus = provider.getValidationStatus();
if (validationStatus != null) {
Object value = validationStatus.getValue();
if (value instanceof BindingStatus) {
BindingStatus status = (BindingStatus) value;
if (!status.isOK()) {