@Override
  public boolean isAvailableForFile(@NotNull PsiFile file) {
    for (JavaFeature feature : requiredFeatures()) {
      if (!PsiUtil.isAvailable(feature, file)) return false;
    }
    return true;
  }
@Override
  public boolean isAvailableForFile(@NotNull PsiFile file)