@Nullable
  private static Module getAttachTargetModule(@NotNull Project project) {
    Module[] modules = ModuleManager.getInstance(project).getModules();
    return modules.length == 0 ? null : modules[0];
  }
@Nullable
  private static Module getAttachTargetModule(@NotNull Project project)