void (@NotNull @TestDataFile String targetDataName, @NotNull PsiFile file) { StringBuffer buffer = new StringBuffer(); Arrays.stream(file.getNode().getChildren(TokenSet.ANY)).forEach(it -> printAstTypeNamesTree(it, buffer, 0)); try { Files.writeString(Paths.get(myFullDataPath, targetDataName + ".fleet.txt"), buffer); } catch (IOException e) { e.printStackTrace(); } }