private Set<SpellCheckingScope> buildAllowedScopes() {
    var result = new HashSet<SpellCheckingScope>();
    if(processLiterals)
      result.add(SpellCheckingScope.Literals);
    if(processComments)
      result.add(SpellCheckingScope.Comments);
    if(processCode)
      result.add(SpellCheckingScope.Code);
    return result;
  }
private Set<SpellCheckingScope> buildAllowedScopes()