boolean (@Nullable PsiStatement statement) { if (statement instanceof PsiBreakStatement || statement instanceof PsiYieldStatement || statement instanceof PsiContinueStatement || statement instanceof PsiThrowStatement) { return true; } if (statement instanceof PsiReturnStatement) { return isSimpleExpression(((PsiReturnStatement)statement).getReturnValue()); } return false; }