void () { ComponentValidator.getInstance(myConfigurable.getOutputDirField()) .ifPresentOrElse(v -> { v.revalidate(); if (v.getValidationInfo() == null) super.doOKAction(); }, () -> { super.doOKAction(); }); }