void (@NotNull GrReturnStatement returnStatement) { super.visitReturnStatement(returnStatement); final GrExpression returnValue = returnStatement.getReturnValue(); if (returnValue != null) return; final GrMethod method = PsiTreeUtil.getParentOfType(returnStatement, GrMethod.class); if (method == null) return; final GrOpenBlock body = method.getBlock(); if (body == null) return; if (ControlFlowUtils.openBlockCompletesWithStatement(body, returnStatement)) { registerStatementError(returnStatement); } }