void (@NotNull FileType fileType, @NotNull String textToType, @NotNull String initial, @NotNull String expected) { String name = "test." + fileType.getDefaultExtension(); configureFromFileText(name, initial); assertFileTypeResolved(fileType, name); for (char c : textToType.toCharArray()) { type(c); } checkResultByText(expected); }