VirtualFile () { // suggest project base dir only if nothing is typed in the component. String text = getComponentText(); if (text.isEmpty()) { VirtualFile file = myProject.getBaseDir(); if (file != null) { return file; } } return super.getInitialFile(); }