void (PsiFile file) { if (isDisposed()) return; if (isStateChangeable(file)) { if (PowerSaveMode.isEnabled()) { myCurrentIcon = IconLoader.getDisabledIcon(AllIcons.Ide.HectorOff); myToolTipText = LangBundle.message("tooltip.code.analysis.disabled.in.power.save.mode") + "\n"; } else if (HighlightingLevelManager.getInstance(getProject()).shouldInspect(file)) { myCurrentIcon = AllIcons.Ide.HectorOn; InspectionProfileImpl profile = InspectionProjectProfileManager.getInstance(file.getProject()).getCurrentProfile(); if (profile.wasInitialized()) { myToolTipText = LangBundle.message("tooltip.current.inspection.profile", profile.getName()) + "\n"; } } else if (HighlightingLevelManager.getInstance(getProject()).shouldHighlight(file)) { myCurrentIcon = AllIcons.Ide.HectorSyntax; myToolTipText = LangBundle.message("tooltip.highlighting.level.syntax") + "\n"; } else { myCurrentIcon = AllIcons.Ide.HectorOff; myToolTipText = LangBundle.message("tooltip.inspections.are.off") + "\n"; } myToolTipText += UIBundle.message("popup.hints.panel.click.to.configure.highlighting.tooltip.text"); } else { myCurrentIcon = file != null ? IconLoader.getDisabledIcon(AllIcons.Ide.HectorOff) : null; myToolTipText = null; } if (!ApplicationManager.getApplication().isUnitTestMode() && myStatusBar != null) { myStatusBar.updateWidget(ID()); } }