void (PropertyChangeEvent event) { if (!(event.getNewValue() instanceof MyFont) && (event.getSource() instanceof Component component) && PROPERTY.equals(event.getPropertyName())) { Font font = derive(event.getNewValue() instanceof Font ? (Font)event.getNewValue() : component.getFont()); if (font != null) { component.setFont(new MyFont(font)); } } }