VirtualFile () { String path = mySettings.getBaseDirectoryPath(); VirtualFile dir = LocalFileSystem.getInstance().findFileByPath(path); if (dir == null) { int index = path.lastIndexOf('/'); if (index >= 0) { path = path.substring(0, index); dir = LocalFileSystem.getInstance().findFileByPath(path); } } return dir; }