1313import java .util .function .Function ;
1414import java .util .stream .Stream ;
1515
16+ import com .intellij .codeInsight .AnnotationUtil ;
1617import com .intellij .codeInsight .lookup .LookupElement ;
1718import com .intellij .codeInsight .lookup .LookupElementBuilder ;
1819import com .intellij .openapi .module .Module ;
@@ -273,7 +274,7 @@ public static boolean isMappingTarget(PsiParameter psiParameter) {
273274 * @return {@code true} if the {@code psiClass} is annotated with {@link Mapper}, {@code false} otherwise
274275 */
275276 public static boolean isMapper (PsiClass psiClass ) {
276- return isAnnotated ( psiClass , MAPPER_ANNOTATION_FQN , false );
277+ return isAnnotated ( psiClass , MAPPER_ANNOTATION_FQN , AnnotationUtil . CHECK_TYPE );
277278 }
278279
279280 /**
@@ -284,7 +285,7 @@ public static boolean isMapper(PsiClass psiClass) {
284285 * @return {@code true} if the {@code psiClass} is annotated with {@link MapperConfig}, {@code false} otherwise
285286 */
286287 public static boolean isMapperConfig (PsiClass psiClass ) {
287- return isAnnotated ( psiClass , MAPPER_CONFIG_ANNOTATION_FQN , false );
288+ return isAnnotated ( psiClass , MAPPER_CONFIG_ANNOTATION_FQN , AnnotationUtil . CHECK_TYPE );
288289 }
289290
290291 /**
@@ -301,10 +302,10 @@ public static boolean isMapperConfig(PsiClass psiClass) {
301302 * @return
302303 */
303304 public static boolean isMappingMethod (PsiMethod psiMethod ) {
304- return isAnnotated ( psiMethod , MAPPING_ANNOTATION_FQN , false )
305- || isAnnotated ( psiMethod , MAPPINGS_ANNOTATION_FQN , false )
306- || isAnnotated ( psiMethod , VALUE_MAPPING_ANNOTATION_FQN , false )
307- || isAnnotated ( psiMethod , VALUE_MAPPINGS_ANNOTATION_FQN , false );
305+ return isAnnotated ( psiMethod , MAPPING_ANNOTATION_FQN , AnnotationUtil . CHECK_TYPE )
306+ || isAnnotated ( psiMethod , MAPPINGS_ANNOTATION_FQN , AnnotationUtil . CHECK_TYPE )
307+ || isAnnotated ( psiMethod , VALUE_MAPPING_ANNOTATION_FQN , AnnotationUtil . CHECK_TYPE )
308+ || isAnnotated ( psiMethod , VALUE_MAPPINGS_ANNOTATION_FQN , AnnotationUtil . CHECK_TYPE );
308309 }
309310
310311 /**
0 commit comments