DataGrip shows a time substantially slower than EXPLAIN ANALYZE
EXPLAIN ANALYZE is showing you the planning and execution time.
DataGrip is showing you the completion time. This may include,


Network transit
Drawing in the GUI, etc.



Just think, if you have a one-row table with one bytea column that contains 2GB, transferring it across the network or even using TCP/IP will be a substantial transit compared to the planning and execution of the query.


  [2017-02-10 21:38:30] 134 rows retrieved starting from 1 in 135ms (execution: 127ms, fetching: 8ms)


That's 134 rows you didn't have to retrieve using EXPLAIN ANALYZE.