@Nullable
  private static TargetTypeBuildScope createTargets(@NotNull Project project,
                                                    boolean forceBuild,
                                                    final JavaResourceRootType rootType,
                                                    final CheckResourcesTarget.Type targetType) {
    List<Module> withResources = getModulesWithGroovyResources(project, rootType);
    return withResources.isEmpty()
           ? null
           : CmdlineProtoUtil.createTargetsScope(targetType.getTypeId(), ContainerUtil.map(withResources, Module::getName), forceBuild);
  }
@Nullable
  private static TargetTypeBuildScope createTargets(@NotNull Project project,
                                                    boolean forceBuild,
                                                    final JavaResourceRootType rootType,
                                                    final CheckResourcesTarget.Type targetType)