Object (@NotNull JComponent component) { Object aaHint = component.getClientProperty(RenderingHints.KEY_TEXT_ANTIALIASING); Object lcdContrastHint = component.getClientProperty(RenderingHints.KEY_TEXT_LCD_CONTRAST); return new AATextInfo(aaHint, lcdContrastHint != null ? (Integer)lcdContrastHint : null); }