boolean (@NotNull PsiElement statement) { final GrControlFlowOwner controlFlowOwner = ControlFlowUtils.findControlFlowOwner(statement); if (controlFlowOwner instanceof GrOpenBlock) { final PsiElement controlFlowOwnerParent = controlFlowOwner.getParent(); if (controlFlowOwnerParent instanceof GrMethod && ((GrMethod)controlFlowOwnerParent).isConstructor()) { return false; } else if (controlFlowOwnerParent instanceof PsiMethod && PsiTypes.voidType().equals(((PsiMethod)controlFlowOwnerParent).getReturnType())) { return false; } } return ControlFlowUtils.collectReturns(controlFlowOwner, true).contains(statement); }