@Override
  public @NotNull Collection<BuildTarget<?>> computeDependencies(@NotNull BuildTargetRegistry targetRegistry, @NotNull TargetOutputIndex outputIndex) {
    JpsMavenModuleExtension moduleExtension = JpsMavenExtensionService.getInstance().getExtension(myModule);
    if (moduleExtension == null) return Collections.emptyList();

    Set<String> names = new HashSet<>(moduleExtension.getAnnotationProcessorModules());
    JavaModuleBuildTargetType javaModuleBuildTargetType = JavaModuleBuildTargetType.getInstance(isTests());
    return myModule.getProject().getModules().stream()
                   .filter(module -> names.contains(module.getName()))
                   .map(module -> new ModuleBuildTarget(module, javaModuleBuildTargetType))
                   .collect(Collectors.toList());
  }
@Override
  public @NotNull Collection<BuildTarget<?>> computeDependencies(@NotNull BuildTargetRegistry targetRegistry, @NotNull TargetOutputIndex outputIndex)