void (String fileText) { try { VirtualFile tempFile = createTempFile("kt", null, fileText, Charset.defaultCharset()); assertFoldingRegionsForFile(tempFile.getPath()); } catch (IOException e) { throw new IllegalStateException(e); } }