How can I simplify this?if ((principal == null || principal.getName() == null)) {            boolean isValidInputData = true;            if ((!reCaptchaBean.isValidCaptcha(recapchaResponse))) {                model.addAttribute(captchaError, messageSource.getMessage(aptchaError, null, LOCALE_RU));                isValidInputData = false;            }            if (!validateAddParamsPageForDemoMode(campaignBeanDto, bindingResult)) {                isValidInputData = false;            }            if (!isValidInputData) {                model.addAttribute(useCampaignBeanDto, true);                return createCompanyAddParams(principal, model, session);            }}
Validating input data
java