void () { super.createNewNameComponent(); final String qualifiedName = ((PsiPackage)element).getQualifiedName(); final String packageName = StringUtil.getPackageName(qualifiedName); preselectExtension(packageName.isEmpty() ? 0 : packageName.length() + 1, qualifiedName.length()); }