How to setup Appium on Mac OS to run automated tests from JAVA classes on Android and iOS devices?

Problem I was facing with Appium that I decided myself below. I could not find a way to install required components ...