public DbField<?, ?> getFieldOrNull(String name) {
        String[] names = name.split("\\.");
        for (DbField<?, ?> field : fields) {
            if (names.length == 1 && checkByName(field, names[0])) {
                return field;
            }

            if (names.length == 2 && checkByNameWithTableNameAlias(field, names[0], names[1])) {
                return field;
            }
        }
        return null;
    }