String () { String fieldText = PsiFormatUtil.formatVariable(myField, PsiFormatUtilBase.SHOW_NAME | PsiFormatUtilBase.SHOW_TYPE, PsiSubstitutor.EMPTY); String occurrencesString = myOccurrencesNumber > -1 ? JavaRefactoringBundle.message("inline.field.field.occurrences", fieldText, myOccurrencesNumber) : JavaRefactoringBundle.message("inline.field.field.name.label", fieldText); return JavaRefactoringBundle.message("inline.field.field.name.label", fieldText, occurrencesString); }