question: private boolean isSomethingToSave ( ) { if ( allowEmpty ) { return true ; } String currentInput = format ( input . getText ( ) ) ; return currentInput != null && ! currentInput . isEmpty ( ) ; }
target:  Check if there is currently something to save, based on the allowEmpty property and the current input (possibly after formatting).