So, I've solved the problem by updating the Icon when the project was loaded. This is how i reach the icon from anywhere: 
        AnAction toolbarButton = ActionManager.getInstance().getAction("cc.takacs.php_codeverage_display.toolbar.enable");