private static boolean isFinal(@NotNull final PsiClass baseClass) {
    return ReadAction.compute(() -> baseClass.hasModifierProperty(PsiModifier.FINAL));
  }
private static boolean isFinal(@NotNull final PsiClass baseClass)