public static @Nullable IdeaModule getIdeaModule(@NotNull Project project) {
    PluginContainer plugins = project.getPlugins();
    IdeaPlugin ideaPlugin = plugins.findPlugin(IdeaPlugin.class);
    if (ideaPlugin == null) {
      return null;
    }
    IdeaModel ideaPluginModel = ideaPlugin.getModel();
    if (ideaPluginModel == null) {
      return null;
    }
    return ideaPluginModel.getModule();
  }
public static @Nullable IdeaModule getIdeaModule(@NotNull Project project)