boolean () { Configurable configurable = getSettings().getConfigurableWithInitializedUiComponent(CopyrightProjectConfigurable.ID, false); CopyrightProjectConfigurable copyrightProjectConfigurable = ConfigurableWrapper.cast(CopyrightProjectConfigurable.class, configurable); if (copyrightProjectConfigurable != null) { return copyrightProjectConfigurable.hasAnyCopyrights(); } return CopyrightManager.getInstance(context.getProject()).hasAnyCopyrights(); }