public static boolean isStringOrSimilarType(Type type){
  if (type instanceof RefType) {
    RefType refType=(RefType)type;
    return refType.equals(RefType.v("java.lang.String")) || refType.equals(RefType.v("java.lang.CharSequence")) || refType.equals(RefType.v("java.lang.StringBuffer"))|| refType.equals(RefType.v("java.lang.StringBuilder"));
  }
  return false;
}

public static boolean isStringOrSimilarType ( Type type ) { if ( type instanceof RefType ) { RefType refType = ( RefType ) type ; return refType . equals ( RefType . v ( "java.lang.String" ) ) || refType . equals ( RefType . v ( "java.lang.CharSequence" ) ) || refType . equals ( RefType . v ( "java.lang.StringBuffer" ) ) || refType . equals ( RefType . v ( "java.lang.StringBuilder" ) ) ; } return false ; }
return true if this reference is to a string , charsequence , stringbuffer , or stringbuilder .
