boolean (PsiStatement statement) { if (!myHasReturnInLoopOrSwitch && (statement instanceof PsiBreakStatement || statement instanceof PsiContinueStatement)) { return true; } if (statement instanceof PsiReturnStatement thenReturn) { return thenReturn.getReturnValue() == null || ExpressionUtils.isSafelyRecomputableExpression(thenReturn.getReturnValue()); } return false; }