private static boolean hasProjectIncludedBuild(@NotNull Project project, @NotNull String projectPath) {
    var projectNode = ExternalSystemApiUtil.findProjectNode(project, GradleConstants.SYSTEM_ID, projectPath);
    if (projectNode == null) return false;
    var compositeBuildNode = ExternalSystemApiUtil.find(projectNode, CompositeBuildData.KEY);
    if (compositeBuildNode == null) return false;
    var compositeBuildParticipants = compositeBuildNode.getData().getCompositeParticipants();
    return !compositeBuildParticipants.isEmpty();
  }
private static boolean hasProjectIncludedBuild(@NotNull Project project, @NotNull String projectPath)