code: public boolean isJava7SwitchExpression(final XSwitchExpression it) {
      boolean _xblockexpression = false;
      {
        final LightweightTypeReference switchType = this.getSwitchVariableType(it);
        if ((switchType == null)) {
          return false;
        }
        boolean _isSubtypeOf = switchType.isSubtypeOf(Integer.TYPE);
        if (_isSubtypeOf) {
          return true;
        }
        boolean _isSubtypeOf_1 = switchType.isSubtypeOf(Enum.class);
        if (_isSubtypeOf_1) {
          return true;
        }
        boolean _isSubtypeOf_2 = switchType.isSubtypeOf(String.class);
        if (_isSubtypeOf_2) {
          return true;
        }
        _xblockexpression = false;
      }
      return _xblockexpression;
    }
docs: Determine whether the given switch expression is valid for Java version 7 or higher.