question: @ NotNull public static SaveDirectory from ( File file ) throws FileNotFoundException { File currentFile = file ; SaveDirectory result = null ; if ( currentFile == null ) { } else { result = createValidSaveDirectory ( currentFile ) ; currentFile = currentFile . getParentFile ( ) ; if ( result != null ) { return result ; } else if ( currentFile == null ) { } else { result = createValidSaveDirectory ( currentFile ) ; currentFile = currentFile . getParentFile ( ) ; if ( result != null ) { return result ; } else { } } } throw new FileNotFoundException ( "unable to load save directory: " + file ) ; }
target:  Returns a new valid instance of the class SaveDirectory. It tries to use the given file. If that is not valid it tires to use its parent file. If that is also not valid it will throw a FileNotFoundException.