class ServerUtils {

    public static boolean isCodeModelValid(@NonNull CodeModel codeModel) {
        return (codeModel.type != null
                && codeModel.inReplyTo != null
                && codeModel.inReplyTo.equals("codemodel")
                && codeModel.type.equals("reply")
                && codeModel.configurations != null
                && isCodeModelConfigurationsValid(codeModel.configurations));
    }

}