int (PsiMethod method) { final ReturnPointCountVisitor visitor = new ReturnPointCountVisitor(ignoreGuardClauses); method.accept(visitor); final int count = visitor.getCount(); if (!mayFallThroughBottom(method)) { return count; } final PsiStatement lastStatement = ControlFlowUtils.getLastStatementInBlock(method.getBody()); if (ControlFlowUtils.statementMayCompleteNormally(lastStatement)) { return count + 1; } return count; }