void (HighlightInfo.Builder builder) { if (myBlock instanceof PsiSwitchStatement switchStatement) { IntentionAction action = getFixFactory().createConvertSwitchToIfIntention(switchStatement); builder.registerFix(action, null, null, null, null); } if (PsiTypes.longType().equals(mySelectorType) || PsiTypes.floatType().equals(mySelectorType) || PsiTypes.doubleType().equals(mySelectorType)) { IntentionAction addTypeCastFix = getFixFactory().createAddTypeCastFix(PsiTypes.intType(), mySelector); builder.registerFix(addTypeCastFix, null, null, null, null); IntentionAction wrapWithAdapterFix = getFixFactory().createWrapWithAdapterFix(PsiTypes.intType(), mySelector); builder.registerFix(wrapWithAdapterFix, null, null, null, null); } }