LDEV-3982: Prevent complex outputs from being used as branching conditions. Remove complex outputs from suggestions when creating branching conditions. Fix labels.
LDEV-3971: Remove pointless synchronisation from Java methods. It would not work in multi-node environment anyway. Focus on DB transactions. General clean up and formatting.