JavaProcessor: extract and format methods.