Icon (IntentionContainer cachedIntentions) { boolean showRefactoring = !ExperimentalUI.isNewUI() && ContainerUtil.exists( cachedIntentions.getInspectionFixes(), descriptor -> IntentionActionDelegate.unwrap(descriptor.getAction()) instanceof BaseRefactoringIntentionAction ); if (showRefactoring) return AllIcons.Actions.RefactoringBulb; boolean showQuickFix = ContainerUtil.exists( cachedIntentions.getErrorFixes(), descriptor -> IntentionManagerSettings.getInstance().isShowLightBulb(descriptor.getAction()) ); if (showQuickFix) return AllIcons.Actions.QuickfixBulb; return AllIcons.Actions.IntentionBulb; }