code: static boolean isSelected(IChemObject object, RendererModel model) {
          if (object.getProperty(StandardGenerator.HIGHLIGHT_COLOR) != null) return true;
          if (model.getSelection() != null) return model.getSelection().contains(object);
          return false;
      }
docs: Determine if an object is selected.
  
  @param object the object
  @return object is selected