public static boolean isIdentifier(final String name) {
		if (name.isEmpty()) {
			return false;
		}
		int cp = name.codePointAt(0);
		if (!Character.isJavaIdentifierStart(cp)) {
			return false;
		}
		for (int i = Character.charCount(cp);
			 i < name.length();
			 i += Character.charCount(cp))
		{
			cp = name.codePointAt(i);
			if (!Character.isJavaIdentifierPart(cp)) {
				return false;
			}
		}
		return true;
	}
Checks whether the given {@code name} is a valid (Java) identifier.

@param name the name to check
@return {@code true} if the given {@code name} is a valid identifier,
        {@code false} otherwise
jenetics.ext/src/main/java/io/jenetics/ext/internal/util/Names.java