byReturnType implementation: byPackageName, logical operators.