void (PsiElement element, PsiSwitchStatement switchStatement) { for (PsiBreakStatement breakStatement : PsiTreeUtil.findChildrenOfType(element, PsiBreakStatement.class)) { if (breakStatement.getLabelIdentifier() == null && breakStatement.findExitedStatement() == switchStatement) { breakStatement.delete(); } } }