@Override
  public @NotNull PsiJavaCodeReferenceCodeFragment createReferenceCodeFragment(final @NotNull String text,
                                                                               final @Nullable PsiElement context,
                                                                               final boolean isPhysical,
                                                                               final boolean isClassesAccepted) {
    return new PsiJavaCodeReferenceCodeFragmentImpl(myProject, isPhysical, "fragment.java", text, isClassesAccepted, context);
  }
@Override
  public @NotNull PsiJavaCodeReferenceCodeFragment createReferenceCodeFragment(final @NotNull String text,
                                                                               final @Nullable PsiElement context,
                                                                               final boolean isPhysical,
                                                                               final boolean isClassesAccepted)