I'm working on a project that uses a method that checks if there are no variables inside the Set. Using isEmpty() isn't recommended as it computes the set of all variables, which can be an undesired “overhead”. I have to write something that does not compute the set of all variables.
public boolean isVarFree(){
getVar().isEmpty() //not recommended
}