if (methodName.equals("hashCode")) { return method.getParameterTypes().length == 0; } if (methodName.equals("toString")) { return method.getParameterTypes().length == 0; } return false; }
    private static boolean isCoreObjectMethod(Method method)    {      String methodName = method.getName();      if (methodName.equals("equals"))        {          return Arrays.equals(method.getParameterTypes(),                               new Class[] { Object.class });        }      if (methodName.equals("hashCode"))        {          return method.getParameterTypes().length == 0;        }      if (methodName.equals("toString"))        {          return method.getParameterTypes().length == 0;        }      return false;    }