function getNodesByDeclarationType(nodes, type) {
	return nodes
		.filter(({ declarationType }) => declarationType === type)
		.map(({ node }) => node);
}
Returns array contains only nodes with declarations types equal to type.
@param {[{node: ASTNode, declarationType: string}]} nodes An array contains objects, each object contains a node and a declaration type.
@param {string} type Declaration type.
@returns {[ASTNode]} An array contains only nodes with declarations types equal to type.