void (Project project) { if (project != null) { myProjectIcon.setVisible(true); myProjectIcon.setText(project.isDefault() ? IdeUICustomization.getInstance().projectMessage("configurable.default.project.tooltip") : IdeUICustomization.getInstance().projectMessage("configurable.current.project.tooltip")); } else { myProjectIcon.setVisible(false); } }