First you will have to practice your concentration and attention (on the Internet there are good workouts for this). then it will become a habit and become easier. I still cann't say that I'm good at it. I'm quite curious and I often get distracted by different things, conversations of colleagues or even music. Usually this doesn't interfere with my work, but when we have deadline in office it really annoys me. My doctor says that during stress I can take special pills, such as nootropicboost.com/buy-best-nootropic-stack/ . It helps me to concentrate on work and to be effective, even if it's around panic.