class InputSentence {

  private final String text;
  private final Language lang;
  private final Language motherTongue;
  private final Set<String> disabledRules;
  private final Set<CategoryId> disabledRuleCategories;
  private final Set<String> enabledRules;
  private final Set<CategoryId> enabledRuleCategories;
  private final UserConfig userConfig;
  private final List<Language> altLanguages;
  private final JLanguageTool.Mode mode;
  private final JLanguageTool.Level level;
  private final Long textSessionID;
  private final Set<ToneTag> toneTags;

  InputSentence(String text, Language lang, Language motherTongue,
                Set<String> disabledRules, Set<CategoryId> disabledRuleCategories,
                Set<String> enabledRules, Set<CategoryId> enabledRuleCategories, UserConfig userConfig,
                List<Language> altLanguages, JLanguageTool.Mode mode, JLanguageTool.Level level, Long textSessionID, Set<ToneTag> toneTags) {
    this.text = Objects.requireNonNull(text);
    this.lang = Objects.requireNonNull(lang);
    this.motherTongue = motherTongue;
    this.disabledRules = disabledRules;
    this.disabledRuleCategories = disabledRuleCategories;
    this.enabledRules = enabledRules;
    this.enabledRuleCategories = enabledRuleCategories;
    this.userConfig = userConfig;
    this.textSessionID = textSessionID;
    this.altLanguages = altLanguages;
    this.mode = Objects.requireNonNull(mode);
    this.level = Objects.requireNonNull(level);
    this.toneTags = toneTags != null ? toneTags : Collections.emptySet();
  }

  InputSentence(String text, Language lang, Language motherTongue,
                Set<String> disabledRules, Set<CategoryId> disabledRuleCategories,
                Set<String> enabledRules, Set<CategoryId> enabledRuleCategories, UserConfig userConfig,
                List<Language> altLanguages, JLanguageTool.Mode mode, JLanguageTool.Level level, Set<ToneTag> toneTags) {
    this(text, lang, motherTongue, disabledRules, disabledRuleCategories,
      enabledRules, enabledRuleCategories, userConfig, altLanguages,
      mode, level, userConfig != null ? userConfig.getTextSessionId() : null, toneTags);
  }
  
  InputSentence(String text, Language lang, Language motherTongue,
                Set<String> disabledRules, Set<CategoryId> disabledRuleCategories,
                Set<String> enabledRules, Set<CategoryId> enabledRuleCategories, UserConfig userConfig,
                List<Language> altLanguages, JLanguageTool.Mode mode, JLanguageTool.Level level) {
    this(text, lang, motherTongue, disabledRules, disabledRuleCategories,
      enabledRules, enabledRuleCategories, userConfig, altLanguages,
      mode, level, userConfig != null ? userConfig.getTextSessionId() : null, null);
  }

  /** @since 4.1 */
  public String getText() {
    return text;
  }
  
  @Override
  public boolean equals(Object o) {<FILL_FUNCTION_BODY>}

  @Override
  public int hashCode() {
    return Objects.hash(text, lang, motherTongue, disabledRules, disabledRuleCategories,
            enabledRules, enabledRuleCategories, userConfig, textSessionID, altLanguages, mode, level, toneTags);
  }

  @Override
  public String toString() {
    return text;
  }
}

    if (o == null) return false;
    if (o == this) return true;
    if (o.getClass() != getClass()) return false;
    InputSentence other = (InputSentence) o;
    return Objects.equals(text, other.text) && 
           Objects.equals(lang, other.lang) &&
           Objects.equals(motherTongue, other.motherTongue) &&
           Objects.equals(disabledRules, other.disabledRules) &&
           Objects.equals(disabledRuleCategories, other.disabledRuleCategories) &&
           Objects.equals(enabledRules, other.enabledRules) &&
           Objects.equals(enabledRuleCategories, other.enabledRuleCategories) &&
           Objects.equals(userConfig, other.userConfig) &&
           Objects.equals(textSessionID, other.textSessionID) &&
           Objects.equals(altLanguages, other.altLanguages) &&
           mode == other.mode &&
           level == other.level &&
           Objects.equals(toneTags, other.toneTags);
  
<no_super_class>