private void updateScope() {
    Sdk jre = myAlternativeJre;
    if (jre == null) jre = myRunJre;
    GlobalSearchScope scope = myBaseScope;
    if (jre != null) {
      LanguageLevel level = LanguageLevel.parse(jre.getVersionString());
      if (level != null) {
        scope = new JavaVersionBasedScope(getProject(), scope, level);
      }
    }
    mySearchScope = scope;
  }
private void updateScope()