boolean (@NotNull CompileContext context) { Project project = context.getProject(); GradleResourceCompilerConfigurationGenerator buildConfigurationGenerator = project.getService(GradleResourceCompilerConfigurationGenerator.class); ApplicationManager.getApplication().runReadAction(() -> buildConfigurationGenerator.generateBuildConfiguration(context)); return true; }