boolean (@Nullable PsiStatement statement) { if (!(statement instanceof PsiIfStatement ifStatement)) { return false; } final PsiStatement thenBranch = ifStatement.getThenBranch(); if (containsUnlabeledBreakStatement(thenBranch)) { return true; } final PsiStatement elseBranch = ifStatement.getElseBranch(); return containsUnlabeledBreakStatement(elseBranch); }