PsiFile (@NotNull String name, @NotNull Language language, @NotNull CharSequence text, boolean eventSystemEnabled, boolean markAsCopy, boolean noSizeLimit, @Nullable VirtualFile original) { LightVirtualFile virtualFile = new LightVirtualFile(name, language, text); if (original != null) { virtualFile.setOriginalFile(original); virtualFile.setFileType(original.getFileType()); } if (noSizeLimit) { SingleRootFileViewProvider.doNotCheckFileSizeLimit(virtualFile); } return trySetupPsiForFile(virtualFile, language, eventSystemEnabled, markAsCopy); }