Outline (Component c) { JComponent component = ObjectUtils.tryCast(c, JComponent.class); if (component != null) { Outline outline = getOutline(component); if (outline != null) { return outline; } } return Outline.focus; }