Project () { Project project = myRunner.getProject(); if (project == null) { throw new IllegalStateException( "Project is null. Use a project-aware runner and check if its project has been set up properly"); } return project; }