code: protected int levelOffset(Context context) throws RuntimeException {
          //TODO: Unused method, make sure this is never used and then remove it.
          int levelOffset;
          switch (context.position) {
              case DOCUMENT_BEFORE:
              case DOCUMENT_AFTER:
                  levelOffset = 0;
                  break;
              case DOCUMENT_BEGIN:
              case DOCUMENT_END:
              case DEFINITION_BEFORE:
              case DEFINITION_AFTER:
                  levelOffset = 1;
                  break;
              case DEFINITION_BEGIN:
              case DEFINITION_END:
                  levelOffset = 2;
                  break;
              default:
                  throw new RuntimeException(String.format("Unknown position '%s'", context.position));
          }
  
          return levelOffset;
      }
docs: Returns title level offset from 1 to apply to content
  
  @param context context
  @return title level offset