@Contract("null, _ -> null")
  public static @Nullable <T extends PsiElement> T getChildOfType(@Nullable PsiElement element, @NotNull Class<T> aClass) {
    if (element != null) {
      for (PsiElement child = element.getFirstChild(); child != null; child = child.getNextSibling()) {
        if (aClass.isInstance(child)) {
          return aClass.cast(child);
        }
      }
    }

    return null;
  }
@Contract("null, _ -> null")
  public static @Nullable <T extends PsiElement> T getChildOfType(@Nullable PsiElement element, @NotNull Class<T> aClass)