void (@NotNull NamedScope namedScope, Project project) { if (myTools != null) { for (ScopeToolState state : myTools) { if (namedScope.equals(state.getScope(project))) { state.setEnabled(true); } } } setEnabled(true); }