public static @Nullable Module findGradleModule(@NotNull Project project, @NotNull String projectPath) {
    var moduleNode = ExternalSystemApiUtil.findModuleNode(project, GradleConstants.SYSTEM_ID, projectPath);
    if (moduleNode == null) return null;
    return findGradleModule(project, moduleNode.getData());
  }
public static @Nullable Module findGradleModule(@NotNull Project project, @NotNull String projectPath)