/*
(non-Javadoc)
@see org.springframework.data.solr.core.query.Query#setSpellcheckOptions(org.springframework.data.solr.core.query.SpellcheckOptions)
769858
@Override
	@SuppressWarnings("unchecked")
	public <T extends Query> T setSpellcheckOptions(SpellcheckOptions spellcheckOptions) {

		this.spellcheckOptions = spellcheckOptions;
		return (T) this;
	}
468007
@Override
	public void setPrefix(final String prefixString) {
		lock.writeLock().lock();
		try {
			if (prefixString == null || StringUtils.isBlank(prefixString)) {
				localPrefix.remove();
			} else {
				if (prefixes != null) {
					if (!prefixes.contains(prefixString)) {
						throw new IllegalArgumentException("The given prefix is not part of the prefixes.");
					}
				}
				localPrefix.set(prefixString);
			}
		} finally {
			lock.writeLock().unlock();
		}
	}
724080
public void setAuthenticationOptions(java.util.Collection<ClientVpnAuthentication> authenticationOptions) {
        if (authenticationOptions == null) {
            this.authenticationOptions = null;
            return;
        }

        this.authenticationOptions = new com.amazonaws.internal.SdkInternalList<ClientVpnAuthentication>(authenticationOptions);
    }
560354
public void setPhrases(java.util.Collection<String> phrases) {
        if (phrases == null) {
            this.phrases = null;
            return;
        }

        this.phrases = new java.util.ArrayList<String>(phrases);
    }
36556
public void setOptions(java.util.Collection<Option> options) {
        if (options == null) {
            this.options = null;
            return;
        }

        this.options = new com.amazonaws.internal.SdkInternalList<Option>(options);
    }
1075698
public void setKeywords(final List<String> keywords) {
        StringBuilder builder = new StringBuilder();
        for (String keyword: keywords) {
            if (builder.length() > 0) {
                builder.append(',');
            }
            builder.append(keyword.trim());
        }
        this.keywords = Optional.of(builder.toString());
    }
748283
public void setKeyPhrases(java.util.Collection<KeyPhrase> keyPhrases) {
        if (keyPhrases == null) {
            this.keyPhrases = null;
            return;
        }

        this.keyPhrases = new java.util.ArrayList<KeyPhrase>(keyPhrases);
    }
130136
public void initSpellcheckIndex(CmsObject adminCms) {

        if (CmsSpellcheckDictionaryIndexer.updatingIndexNecessesary(adminCms)) {
            final CmsSolrSpellchecker spellchecker = OpenCms.getSearchManager().getSolrDictionary();
            if (spellchecker != null) {

                Runnable initRunner = new Runnable() {

                    public void run() {

                        try {
                            spellchecker.parseAndAddDictionaries(adminCms);
                        } catch (CmsRoleViolationException e) {
                            LOG.error(e.getLocalizedMessage(), e);
                        }
                    }
                };
                new Thread(initRunner).start();
            }
        }
    }
769066
public void setLanguages(java.util.Collection<DominantLanguage> languages) {
        if (languages == null) {
            this.languages = null;
            return;
        }

        this.languages = new java.util.ArrayList<DominantLanguage>(languages);
    }
249916
public void setRegexMatchSets(java.util.Collection<RegexMatchSetSummary> regexMatchSets) {
        if (regexMatchSets == null) {
            this.regexMatchSets = null;
            return;
        }

        this.regexMatchSets = new java.util.ArrayList<RegexMatchSetSummary>(regexMatchSets);
    }
1194371
public PatternTokenizer setIgnorableCharacters(UnicodeSet ignorableCharacters) {
        this.ignorableCharacters = (UnicodeSet) ignorableCharacters.clone();
        needingQuoteCharacters = null;
        return this;
    }
384731
function(options) {
	   inputEx.PasswordField.superclass.setOptions.call(this, options);
	   
   	this.options.className = options.className ? options.className : "inputEx-Field inputEx-PasswordField";
	   
	   // Add the password regexp (overridable)
	   this.options.regexp = options.regexp || inputEx.regexps.password;
	  
		// display a strength indicator
		this.options.strengthIndicator = YAHOO.lang.isUndefined(options.strengthIndicator) ? false : options.strengthIndicator;
		
		// capsLockWarning
		this.options.capsLockWarning = YAHOO.lang.isUndefined(options.capsLockWarning) ? false : options.capsLockWarning;
		
		// confirm option, pass the id of the password field to confirm
		inputEx.PasswordField.byId[options.id] = this;
		var passwordField;
		if(options.confirm && (passwordField = inputEx.PasswordField.byId[options.confirm]) ) {
			this.setConfirmationField(passwordField);
		}
	}
463378
public void setInjectionOptions(final InjectionOptions injectionOptions) {
        if (injectionOptions == null && this.injectionOptions == null) {
            return;
        } else if (injectionOptions == null) {
            removeChild(this.injectionOptions);
            this.injectionOptions = null;
        } else if (this.injectionOptions == null) {
            this.injectionOptions = new KeyValueNode<InjectionOptions>(CommonConstants.CS_INLINE_INJECTION_TITLE, injectionOptions);
            appendChild(this.injectionOptions, false);
        } else {
            this.injectionOptions.setValue(injectionOptions);
        }
    }
1071761
public void setSkillTypes(java.util.Collection<String> skillTypes) {
        if (skillTypes == null) {
            this.skillTypes = null;
            return;
        }

        this.skillTypes = new java.util.ArrayList<String>(skillTypes);
    }
1148010
public void setSrcExtensions(String srcExts)
	{
		StringTokenizer tok = new StringTokenizer(srcExts, ",");
		while (tok.hasMoreTokens())
			_srcExts.add(tok.nextToken());
	}
658662
public void setSpecificDocletOptions(String[][] options) {
		for (int oi = 0; oi < options.length; ++oi) {
			String[] os = options[oi];
			String opt = os[0].toLowerCase();
			if (opt.equals("-charset")) {
				charset = os[1];
			} else if (opt.equals("-noframe")) {
				noframe = true;
			} else if (opt.equals("-dubboconfigpath")) {
				dubboconfigpath = os[1];
			} else if (opt.equals("-springcontextconfigpath")) {
				springcontextconfigpath = os[1];
			} else if (opt.equals("-excludedurlsxpath")) {
				excludedurlsxpath = os[1];
			} else if (opt.equals("-showannotationlist")) {
				showAnnotationList = os[1];
			} else if (opt.equals("-authkeyword")) {
				authKeyword = os[1];
			} else if (opt.equals("-noauthkeyword")) {
				noAuthKeyword = os[1];
			} else if (opt.equals("-systemname")) {
				systemname = os[1];
			} else if (opt.equals("-branchname")) {
				branchname = os[1];
			} else if (opt.equals("-searchengine")) {
				searchengine = os[1];
			} else if (opt.equals("-codeurl")) {
				codeurl = os[1];
			} else if (opt.equals("-buildid")) {
				buildid = os[1];
			} else if (opt.equals("-cmzfieldinclude")) {
				cmzFieldInclude = os[1];
			} else if (opt.equals("-cmzfieldexclude")) {
				cmzFieldExclude = os[1];
			}
		}
		// if branchname is not specified, try to resolve it from codeurl.
		if (StringUtils.isEmpty(branchname) && StringUtils.isNotEmpty(codeurl)) {
			codeurl = StringUtils.removeEnd(codeurl, "/");
			String[] parts = StringUtils.split(codeurl, '/');
			branchname = parts[parts.length - 1];
		}
		if (root.specifiedClasses().length > 0) {
			Map<String, PackageDoc> map = new HashMap<String, PackageDoc>();
			PackageDoc pd;
			ClassDoc[] classes = root.classes();
			for (int i = 0; i < classes.length; i++) {
				pd = classes[i].containingPackage();
				if (!map.containsKey(pd.name())) {
					map.put(pd.name(), pd);
				}
			}
		}
	}
948684
def set_as_spell_check(self, color=Qt.blue):
        
        self.format.setUnderlineStyle(
            QTextCharFormat.SpellCheckUnderline)
        self.format.setUnderlineColor(color)