void (@NotNull Project project, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { PsiSwitchBlock block = PsiTreeUtil.getParentOfType(startElement, PsiSwitchBlock.class); if (block instanceof PsiSwitchStatement) { ConvertSwitchToIfIntention.doProcessIntention((PsiSwitchStatement)block); } else if (block instanceof PsiSwitchExpression) { unwrapExpression((PsiSwitchExpression)block); } }