By disabling earlier created editor plugin button it cooks without a problem.
I have added new plugin using editor - simple button. Default configuration was Development (so when cooking it was trying to cook the plugin into build) instead of Editor. This could be fixed to prevent similar issues which is really hard to track without debugger.