def METHOD_NAME(self, stmt):
    """
    Wrap a single declaration in a DeclarationStatement
    """
    if not self.is_declaration(stmt):
        self.log_with_loc(
            "Expected a declaration but got \"%s\". Using a dummy." %
            (stmt.java_name), loglevel="ERROR")
        return StatementBuilderKt.newDeclarationStatement(
            self.frontend, "DUMMY")
    decl_stmt = StatementBuilderKt.newDeclarationStatement(self.frontend,
                                                           stmt.getCode())
    decl_stmt.setLocation(stmt.getLocation())
    decl_stmt.setSingleDeclaration(stmt)
    return decl_stmt