How to obtain a reference to org.gradle.api.Project?

Hi! I’m working on a plugin for FitNesse to parse build.gradle build script for dependencies. I looked at tooling-api examples and could not find an example for my case. As API documentation says, I need to start with Project, so I need a reference to Project interface, but how can I get it? I looked into GradleConnector, ProjectConnection and GradleProject. Any other ideas? Thank you, Andrey

It seems that the relevant question was already asked and answered before:

I will try to use IdeaModel or EclipseModel for my purpose.