boolean (@NotNull String category) { if (category.startsWith("Is")) { try { return Character.UnicodeBlock.forName(category.substring(2)) != null; } catch (IllegalArgumentException ignore) {} } for (String[] name : DefaultRegExpPropertiesProvider.getInstance().getAllKnownProperties()) { if (name[0].equals(category)) { return true; } } return false; }