ValueBasedUtils { public static boolean isValueBased(Type type) { String className = getRootElementType(type).fullyQualifiedName(); return (KNOWN_VALUE_BASED_CLASSES.contains(className) || isInJavaTimePackage(className)) && !"java.time.Clock".equals(className); } private  ValueBasedUtils(); static boolean isValueBased(Type type);  }
@Test void testIsValueBased() throws Exception { File file = new File("src/test/files/checks/helpers/ValueBasedUtilsTest.java"); CompilationUnitTree tree = JParserTestUtils.parse(file); List<Tree> members = ((ClassTree) tree.types().get(0)).members(); members.stream() .forEach(member -> checkMember((VariableTree)member)); }