HighlightDisplayLevel (String scope, Project project) { if (myTools != null && scope != null){ for (ScopeToolState state : myTools) { final NamedScope stateScope = state.getScope(project); if (stateScope != null && scope.equals(stateScope.getScopeId())) { return state.getLevel(); } } } return myDefaultState.getLevel(); }