if (string.equals("void"))
if (PrimitiveType.toCode(string) == PrimitiveType.VOID)
	private static boolean isValidTypeName(String string, boolean isVoidAllowed){		if ("".equals(string.trim())) //speed up for a common case //$NON-NLS-1$			return false;		if (! string.trim().equals(string))			return false;		if (string.equals("void")) //$NON-NLS-1$			return isVoidAllowed;		if (! Checks.checkTypeName(string).hasFatalError())			return true;		if (KEYWORD_TYPE_NAMES.contains(string))			return true;			StringBuffer cuBuff= new StringBuffer();		cuBuff.append(CONST_CLASS_DECL);		int offset= cuBuff.length();		cuBuff.append(string)			  .append(CONST_ASSIGN)			  .append("null") //$NON-NLS-1$			  .append(CONST_CLOSE);		CompilationUnit cu= AST.parseCompilationUnit(cuBuff.toString().toCharArray());		Selection selection= Selection.createFromStartLength(offset, string.length());		SelectionAnalyzer analyzer= new SelectionAnalyzer(selection, false);		cu.accept(analyzer);		ASTNode selected= analyzer.getFirstSelectedNode();		if (!(selected instanceof Type))			return false;		Type type= (Type)selected;		if (isVoidArrayType(type))			return false;		return string.equals(cuBuff.substring(type.getStartPosition(), ASTNodes.getExclusiveEnd(type)));	}