[FLINK-1145] Fix incorrect getter / setter detection