FIELD: pharmacology.SUBSTANCE: invention relates to a heterocyclic derivative or a pharmaceutically acceptable salt thereof, of the general formula, wherein ring A is a group represented by the general formulas , or , where X1 is NH, NC1-6alkyl or O; A1 is hydrogen; A2 is i) hydrogen; ii) halogen; iii) C1-6alkyl optionally substituted by one to three groups selected from a group consisting of halogen, amino, mono(C1-6alkyl)amino, di(C1-6alkyl)amino, carbamoyl, mono(C1-6alkyl)aminocarbonyl, di(C1-6alkyl)aminocarbonyl, saturated cyclic aminocarbonyl, wherein the "saturated cyclic amino group" of the "saturated cyclic aminocarbonyl" part is 1-pyrrolidinyl, C1-6alkoxy and C1-6alkoxy-C1-6alkoxy; iv) C3-6cycloalkyl, optionally substituted by C1-6alkyl optionally substituted by one to three halogens; vi) a 4 to 5-membered saturated heterocyclic group containing one nitrogen or oxygen atom in the ring, optionally substituted by C1-6alkyl, (C1-6alkyloxy)carbonyl, (C1-6alkyl)carbonyl or hydroxy; (vii) C1-6alkylthio; (viii) C1-6alkylsulfonyl; ix) C1-6alkylsulfinyl; x) -NR3R4, where R3 and R4 are the same or different groups selected from a) hydrogen, b) optionally substituted C1-6alkyl, or c) C3-6cycloalkyl; or xi) saturated cyclic amino, wherein the "saturated cyclic amino" is piperidino, 1-piperazinyl or 4-morpholino, optionally substituted by C1-6alkyl, amino, mono(C1-6alkyl)amino, di(C1-6alkyl)amino, C1-6alkoxy or hydroxyl; R1 is phenyl, benzyl, naphthyl, C3-6cycloalkyl, C3-6cycloalkylmethyl, heteroaryl wherein heteroaryl is benzothiadiazolyl, benzothiazolyl, indolyl, 1,1-dioxobenzothiophenyl, quinolyl or 1,3-benzoxazol-2-yl, 1,2,3,4-tetrahydronaphthalen-5-yl, 1,2, 3,4-tetrahydronaphthalen-6-yl, 2,3-dihydro-1H-inden-4-yl, 2,3-dihydro-1H-inden-5-yl or C1-6alkyl, wherein the said phenyl, benzyl, cycloalkyl, cycloalkylmethyl and heteroaryl are optionally substituted; R2 is phenyl or pyridyl, wherein the said phenyl and pyridyl are optionally substituted. The invention also r