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