clean some old reflection code for older jdks, on which IDEA does not run anymore