Make the inner class of LegacyHooks public

Otherwise, we cannot access it from the PluginClassLoader when the
LegacyClassLoader passes the inner class through from *another* class
loader.

Rather than trying to play real sophisticated games here, let's simply
make it public and be done with it.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>