@@ -85,31 +85,32 @@ public static boolean isIRInterface(TypeMirror type, ProcessingEnvironment proce
8585
8686 public static TypeElement irTypeElement (ProcessingEnvironment procEnv ) {
8787 var ret = procEnv .getElementUtils ().getTypeElement (IR_INTERFACE_FQN );
88- hardAssert (ret != null );
88+ hardAssert (ret != null ,
89+ "Cannot resolve " + IR_INTERFACE_FQN + " from proc environment. Maybe missing import?" );
8990 return ret ;
9091 }
9192
9293 public static TypeElement diagnosticStorageTypeElement (ProcessingEnvironment procEnv ) {
9394 var ret = procEnv .getElementUtils ().getTypeElement (DIAGNOSTIC_STORAGE_FQN );
94- hardAssert (ret != null );
95+ hardAssert (ret != null , "Cannot resolve " + DIAGNOSTIC_STORAGE_FQN + " from proc environment. Maybe missing import?" );
9596 return ret ;
9697 }
9798
9899 public static TypeElement identifiedLocationTypeElement (ProcessingEnvironment procEnv ) {
99100 var ret = procEnv .getElementUtils ().getTypeElement (IDENTIFIED_LOCATION_FQN );
100- hardAssert (ret != null );
101+ hardAssert (ret != null , "Cannot resolve " + IDENTIFIED_LOCATION_FQN + " from proc environment. Maybe missing import?" );
101102 return ret ;
102103 }
103104
104105 public static TypeElement metadataStorageTypeElement (ProcessingEnvironment procEnv ) {
105106 var ret = procEnv .getElementUtils ().getTypeElement (METADATA_STORAGE_FQN );
106- hardAssert (ret != null );
107+ hardAssert (ret != null , "Cannot resolve " + METADATA_STORAGE_FQN + " from proc environment. Maybe missing import?" );
107108 return ret ;
108109 }
109110
110111 public static TypeElement uuidTypeElement (ProcessingEnvironment procEnv ) {
111112 var ret = procEnv .getElementUtils ().getTypeElement (UUID_FQN );
112- hardAssert (ret != null );
113+ hardAssert (ret != null , "Cannot resolve " + UUID_FQN + " from proc environment. Maybe missing import?" );
113114 return ret ;
114115 }
115116
0 commit comments