boolean (final String subDirName) { if (subDirName.isEmpty()) { return false; } final boolean multiCreation = StringUtil.containsAnyChar(subDirName, myDelimiters); if (!multiCreation) { try { myDirectory.checkCreateSubdirectory(subDirName); } catch (IncorrectOperationException ex) { showErrorDialog(CreateElementActionBase.filterMessage(ex.getMessage())); return false; } } final Boolean createFile = suggestCreatingFileInstead(subDirName); if (createFile == null) { return false; } doCreateElement(subDirName, createFile); return myCreatedElement != null; }