If you have a local class (e.g. test class) that refers to a type of the corresponding global class, this check is false positive.
Example:
class-pool.
class zcl_class definition public final create public.
public section.
types ty_type type string.
endclass.
class ltcl_error definition final.
private section.
data mv_data type zcl_class=>ty_type.
endclass.
If you have a local class (e.g. test class) that refers to a type of the corresponding global class, this check is false positive.
Example: