void () { final Object item = getComboBox().getSelectedItem(); String sdkHomePath = item instanceof Sdk ? ((Sdk)item).getHomePath() : null; getComboBox().setToolTipText(sdkHomePath != null ? FileUtil.toSystemDependentName(sdkHomePath) : null); }