boolean (PsiStatement statement) { return statement instanceof PsiReturnStatement || statement instanceof PsiThrowStatement || (!myHasReturnInLoopOrSwitch && (statement instanceof PsiBreakStatement || statement instanceof PsiContinueStatement)); }