int (@NotNull Section section) { final List<SectionField> fields = section.getFields(); //noinspection ConstantConditions return fields.isEmpty() ? getSectionTitleLastLine(section) : getFieldEndLine(ContainerUtil.getLastItem(fields)); }