boolean (@NotNull String category) { if (category.startsWith("In")) { try { return Character.UnicodeBlock.forName(category.substring(2)) != null; } catch (IllegalArgumentException e) { return false; } } category = StringUtil.trimStart(category, "Is"); for (String[] name : myPropertyNames) { if (name[0].equals(category)) { return true; } } return false; }