EditorTextField (@NotNull String text, @NotNull String fileName, @NotNull Project project) { final FileType fileType = getFileType(fileName); final Document document = createDocument(fileType, text, project); return new EditorTextField(document, project, fileType); }