public static JavaCodeFragmentFactory getInstance(Project project) {
    return project.getService(JavaCodeFragmentFactory.class);
  }
public static JavaCodeFragmentFactory getInstance(Project project)