[TIMOB-12259] Reworked the CodeProcessor API to reflect changes in overall design