The next best solution is to use the Mac Data Recovery software. How will you get it back? You could use the Time Machine but what if you had forgotten to set the backup frequency? Plus, the backup will not contain data stored in hard drives other than the primary one. The problem is when the data is very important, and you just have to get it back.
Anyone can accidentally delete an app or some data from their Mac.