String (@NotNull PsiFile psiFile) { StringBuilder result = new StringBuilder(); for (PsiFile subTree : psiFile.getViewProvider().getAllFiles()) { result.append("Language: ").append(subTree.getLanguage()).append("\n").append(DebugUtil.psiToString(subTree, true, false)); } return result.toString(); }