(split) simplify function and move it to abstractmetaland for reuse.
(split) simplify function and move it to abstractmetaland for reuse.

[git-p4: depot-paths = "//depot/qtjambi/main/": change = 284209]

qt-generator/qt-generator,qt-generator/qt-generator,qt-generator/qt-generator