That wouldn't have fixed it. That method can be private or public and is private (what you had before) in nearly every plugin on the site here.