List<ValidationInfo> () { boolean actionIdValid = isActionIdValid(); boolean actionNameValid = isActionNameValid(); boolean actionClassNameValid = isActionClassNameValid(); String createClassErrorMessage = checkCanCreateActionClass(); if (actionIdValid && actionNameValid && actionClassNameValid && createClassErrorMessage == null) { return Collections.emptyList(); } List<ValidationInfo> result = new ArrayList<>(); if (!actionIdValid) { result.add(new ValidationInfo(DevKitBundle.message("new.action.invalid.id"), myActionIdEdit)); } if (!actionClassNameValid) { result.add(new ValidationInfo(DevKitBundle.message("new.action.invalid.class.name"), myActionClassNameEdit)); } if (!actionNameValid) { result.add(new ValidationInfo(DevKitBundle.message("new.action.invalid.name"), myActionNameEdit)); } if (createClassErrorMessage != null) { result.add(new ValidationInfo(createClassErrorMessage, myActionClassNameEdit)); } return result; }