Move the NoSuchMethodException handler into LegacyHooks

Needed because EssentialLegacyHooks is not intended to be subclassed.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
fixup! Make IJ.getClassLoader() consistent