remove parents for java getter methods