fix compilation under 1.8
WI-22702 Remote Interpreter: Apply button doesn't change state if remote interpreter has been created (implement equals and hashCode)
remove unreachable code
remove code duplicates in tabs painters
replace colors to Gray constants