You can try to add the project as a constructor argument, then it should automatically injected by idea. See https://github.com/oker1/phpunit_codecoverage_display/blob/master/src/cc/takacs/php_codeverage_display/ProjectPlugin.java#L20