public static @NotNull Collection<Tag> getElementTags(@Nullable PsiElement element) {
    if (!isEnabled()) return Collections.emptySet();
    if (element == null || !element.isValid()) return Collections.emptySet();
    return getInstance(element.getProject()).getTags(element);
  }
public static @NotNull Collection<Tag> getElementTags(@Nullable PsiElement element)