category = JDK, severity = ERROR, maturity = EXPERIMENTAL)
public class LockMethodChecker extends AbstractLockMethodChecker {
@Override
protected ImmutableList<String> getLockExpressions(MethodTree tree) {
LockMethod lockMethod = ASTHelpers.getAnnotation(tree, LockMethod.class);
return lockMethod == null
? ImmutableList.<String>of()
: ImmutableList.copyOf(lockMethod.value());
}