boolean (final @NotNull String name, final Project project) { final int len = name.length(); if (len == 0) return false; if (!Character.isJavaIdentifierStart(name.charAt(0))) return false; for (int i = 1; i < len; i++) { if (!Character.isJavaIdentifierPart(name.charAt(i))) return false; } return true; }