How to run and debug SNAP from an IDE -IntelliJ IDEA - Error

What have you specified as Working directory?
I guess in your case it should be
/home/ahmad/Documents/Projects/SNAP/snap-desktop/snap-application/target/snap

Also, the path to the userdir looks strange. Change it to.
/home/ahmad/Documents/Projects/SNAP/snap-desktop/snap-application/target/userdir

In the patches directory, I see a duplicated ‘/’. Don’t know if this can cause trouble