We are using hooks to direct the coding agent to use graft grep instead of just grep, so this should ideally not happen.
Also, for java projects we do support a more deeper graph, a few of our contributors are working on making it better for java projects, let us know if you have any ideas there.