public void configure(IProjectConfigurationRequest request, IProgressMonitor monitor)
     throws Exception {
   if (isJavaProject(request.getProject())
       && isPreferenceEnabled(request.getProject())
       && shouldConfigureApt(request.getGradleModel())) {
     AptUtils.configureApt(JavaCore.create(request.getProject()));
   }
 }
 protected boolean shouldConfigureApt(EclipseProject gradleModel) {
   return AptUtils.isAptEnabled(GradleCore.create(gradleModel).getJavaProject())
       || shouldEnableApt(gradleModel);
 }