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