PsiDirectory (String name) { myLevel++; myFilesForLevel.add(new ArrayList<>()); myCurrentLevelDirectory = createDirectory(myProject, myCurrentLevelDirectory.getVirtualFile(), name); return myCurrentLevelDirectory; }