class Element {

    public boolean hasDocStrings() {
        for (Step step : steps) {
            if (step.getDocString() != null) {
                return true;
            }
        }
        return false;
    }

}