public static void editAssociations(@NotNull Project project,
                                      @Nullable PsiFile file) {
    FileAssociationsConfigurable instance = new FileAssociationsConfigurable(project);

    ShowSettingsUtil.getInstance().editConfigurable(project, instance, () -> {
      if (file != null) {
        instance.myEditor.select(file);
      }
    });
  }
public static void editAssociations(@NotNull Project project,
                                      @Nullable PsiFile file)