Corrected the detection of methods and properties of Java objects