class ValidationUtils {

    public static boolean isMainComponent(ValidationConfig config, boolean mainComponent) {
        Objects.requireNonNull(config);
        return config.isCheckMainComponentOnly() ? mainComponent : true;
    }

    private  ValidationUtils();

}