code: public static boolean isFinal(LightweightTypeReference expressionTypeRef) {
  		if (expressionTypeRef.isArray()) {
  			return isFinal(expressionTypeRef.getComponentType());
  		}
  		if (expressionTypeRef.isPrimitive()) {
  			return true;
  		}
  		return expressionTypeRef.getType() instanceof JvmDeclaredType
  				&& ((JvmDeclaredType) expressionTypeRef.getType()).isFinal();
  	}
docs: Replies if the given reference is referencing a final type.
  
  @param expressionTypeRef - the type reference to test.
  @return <code>true</code> if the given type is final.