Possibly emit some warnings about C{contactType}'s implementation of
        L{IContactType}.

        @type contactType: L{IContactType} provider
323954
def _checkContactType(self, contactType):
        
        if getattr(contactType, 'getEditFormForPerson', None) is None:
            warn(
                "IContactType now has the 'getEditFormForPerson'"
                " method, but %s did not implement it." % (
                    contactType.__class__,),
                category=PendingDeprecationWarning)

        if getattr(contactType, 'getEditorialForm', None) is not None:
            warn(
                "The IContactType %s defines the 'getEditorialForm'"
                " method, which is deprecated.  'getEditFormForPerson'"
                " does something vaguely similar." % (contactType.__class__,),
                category=DeprecationWarning)
1048429
public void notifyTyping(String id, String value)
    {
        Util utilAll = new Util(getUsersToAffect());

        utilAll.setValue(id, Security.replaceXmlCharacters(value));
    }
255348
def show_type(self, call_id, payload):
        """"""
        if self.full_types_enabled:
            tpe = payload['fullName']
        else:
            tpe = payload['name']

        self.log.info('Displayed type %s', tpe)
        self.editor.raw_message(tpe)
521620
void expectStringOrSymbol(Node n, JSType type, String msg) {
    if (!type.matchesStringContext() && !type.matchesSymbolContext()) {
      mismatch(n, msg, type, STRING_SYMBOL);
    }
  }
218787
protected void notifyConfigListeners(long seq) throws IOException {
		IServiceReference[] refs = null;
		try {
			refs = getPlatformServices().getServiceReferences(IConfigListener.class.getName(),  "(name="+getName()+")"); //$NON-NLS-1$ //$NON-NLS-2$
		} catch (PlatformServicesException e) {
			if (log.isLoggable(Level.SEVERE)) {
				log.log(Level.SEVERE, e.getMessage(), e);
			}
		}

		if (refs != null) {
			for (IServiceReference ref : refs) {
				IConfigListener listener =
						(IConfigListener)getPlatformServices().getService(ref);
				if (listener != null) {
					try {
						listener.configLoaded(config, seq);
					} catch (Throwable t) {
						if (log.isLoggable(Level.SEVERE)) {
							log.log(Level.SEVERE, t.getMessage(), t);
						}
						throw new IOException(t);
					} finally {
						getPlatformServices().ungetService(ref);
					}
				}
			}
		}
	}
109734
private void warnOfContentChange()
	{
		IConsole[] consoles = ConsolePlugin.getDefault().getConsoleManager().getConsoles();
		for (IConsole iConsole : consoles)
		{
			if (iConsole instanceof VdmDebugConsole)
			{
				VdmDebugConsole vdmC = (VdmDebugConsole) iConsole;
				vdmC.activate();
			}
		}

		// if (warn != null) {
		// ConsolePlugin.getDefault().getConsoleManager()
		// .warnOfContentChange(warn);
		// }
	}
520554
public void syncContactTypeToMain()
    {
        ReferenceField fldContactType = (ReferenceField)this.getMainRecord().getField(MessageDetail.CONTACT_TYPE_ID);
        String strContactTypeParam = fldContactType.getFieldName();
        this.syncRecordToMainField(fldContactType, null, strContactTypeParam);
    }
1014769
def is_contact_binary(self, component):
        
        if component not in self._is_contact_binary.keys():
            self._update_cache()

        return self._is_contact_binary.get(component)
1091930
function isIcon(target) {
    return angular.isDefined(target.element) && angular.isDefined(target.config);
  }
1301992
boolean needsSuppressWarnings(List<MessageType> msgTypes) {
        return msgTypes.stream().anyMatch(t -> t.accept(suppressWarningsVisitor, null));
    }
104005
def new_style_notification(notify)
      # Given `notifies :restart, "service[foo]"` the target is the
      # `"service[foo]"` string portion.
      target_path = 'args_add_block/args_add/descendant::
        tstring_content[count(ancestor::dyna_symbol) = 0]/@value'
      target = notify.xpath("arg_paren/#{target_path} | #{target_path}").to_s

      # Test the target string against the standard syntax for a new-style
      # notification: `resource_type[resource_name]`.
      match = target.match(/^([^\[]+)\[(.*)\]$/)
      return nil unless match

      # Convert the captured resource type and name to symbols.
      resource_type, resource_name =
        match.captures.tap { |m| m[0] = m[0].to_sym }

      # Normally the `resource_name` will be a simple string. However in the
      # case where it has an embedded sub-expression then we will return the
      # AST to the caller to handle.
      if notify.xpath("descendant::string_embexpr").empty?
        return nil if resource_name.empty?
      else
        resource_name =
          notify.xpath("args_add_block/args_add/string_literal")
      end
      { resource_name: resource_name, resource_type: resource_type }
    end
897839
void addStrictWarning(String messageId, String messageArg) {
        int beg = -1, end = -1;
        if (ts != null) {
            beg = ts.tokenBeg;
            end = ts.tokenEnd - ts.tokenBeg;
        }
        addStrictWarning(messageId, messageArg, beg, end);
    }
1119515
public void showStatus(String strMessage, ImageIcon icon, int iWarningLevel)
    {
        if (strMessage == null)
            strMessage = Constants.BLANK;
        if (m_textArea != null)
            m_textArea.setText(strMessage);
        if (iWarningLevel == Constants.WARNING)
        {
            m_textArea.setForeground(Color.RED);
            m_textArea.setBackground(Color.PINK);
            m_textArea.setOpaque(true);
        }
        else if (iWarningLevel == Constants.WAIT)
        {
            m_textArea.setForeground(Color.BLUE);
            m_textArea.setBackground(Color.CYAN);
            m_textArea.setOpaque(true);
        }
        else
        {
            m_textArea.setForeground(Color.BLACK);
            m_textArea.setOpaque(false);
        }
        if (icon != null)
            m_textArea.setIcon(icon);
        else
            m_textArea.setIcon(null);
    }
706903
def set_warning(type, enabled, pattern=nil, params=[])
      begin
        @warnings.set(type, enabled, pattern, params)
      rescue Warning::WarnException => e
        warn(nil, e.message)
      end
    end
1018404
public ContactTypeField getContactTypeField()
    {
        BaseField field = this.getRecord().getField("ContactTypeID");
        if (field instanceof ContactTypeField)
            return (ContactTypeField)field;
        return null;    // Never
    }
1051080
def is_message_handler(type_, from_, cb):
    

    try:
        handlers = aioxmpp.service.get_magic_attr(cb)
    except AttributeError:
        return False

    return aioxmpp.service.HandlerSpec(
        (_apply_message_handler, (type_, from_)),
        require_deps=(
            SimpleMessageDispatcher,
        )
    ) in handlers
680708
function isLLCall050 (node) {
  return isMemberAccess(node,
          exactMatch(util.escapeRegExp(lowLevelCallTypes['CALL-v0.5'].type)),
          undefined, exactMatch(basicTypes.PAYABLE_ADDRESS), exactMatch(lowLevelCallTypes['CALL-v0.5'].ident))
}