[pfff] parse some java from a string

Summary: See title.

Test Plan: testinprod

Reviewers: pad

Reviewed By: pad

Differential Revision: https://phabricator.fb.com/D1262068