@Override
  public JavaCodeFragment createMemberCodeFragment(@NotNull String text, @Nullable PsiElement context, boolean isPhysical) {
    return new PsiCodeFragmentImpl(myProject,  JavaElementType.MEMBERS, isPhysical, "fragment.java", text, context);
  }
@Override
  public JavaCodeFragment createMemberCodeFragment(@NotNull String text, @Nullable PsiElement context, boolean isPhysical)