void (final String value) { final String className = PsiNameHelper.getShortClassName(value); if(value.length() == className.length()){ // class in default package setText(className); } else{ final String packageName = value.substring(0, value.length() - className.length() - 1); setText(UIDesignerBundle.message("class.in.package", className, packageName)); } }