PsiFile (FileType fileType, String fileName, CharSequence chars, int startOffset, int endOffset) { LOG.assertTrue(!fileType.isBinary()); CharSequence text = startOffset == 0 && endOffset == chars.length()?chars:new CharSequenceSubSequence(chars, startOffset, endOffset); return createFileFromText(fileName, fileType, text); }