@Override
    public void visitReturnStatement(@NotNull PsiReturnStatement statement) {
      super.visitReturnStatement(statement);
      final Ref<Boolean> constructorRef = Ref.create();
      if (isReturnRedundant(statement, ignoreInThenBranch, true, constructorRef)) {
        registerError(statement.getFirstChild(), constructorRef.get());
      }
    }
@Override
    public void visitReturnStatement(@NotNull PsiReturnStatement statement)