Boolean (String subDirName) { Boolean createFile = false; if (StringUtil.countChars(subDirName, '.') == 1 && Registry.is("ide.suggest.file.when.creating.filename.like.directory")) { if (findFileTypeBoundToName(subDirName) != null) { String message = LangBundle.message("dialog.message.name.you.entered", subDirName); int ec = Messages.showYesNoCancelDialog(myProject, message, LangBundle.message("dialog.title.file.name.detected"), LangBundle.message("button.yes.create.file"), LangBundle.message("button.no.create", myIsDirectory ? LangBundle.message("button.no.create.directory") : LangBundle.message("button.no.create.package")), CommonBundle.getCancelButtonText(), Messages.getQuestionIcon()); if (ec == Messages.CANCEL) { createFile = null; } if (ec == Messages.YES) { createFile = true; } } } return createFile; }