private static boolean isImplementInterfaceInJava8Interface(@NotNull PsiClass targetClass) {
    if (!PsiUtil.isAvailable(JavaFeature.EXTENSION_METHODS, targetClass)){
      return false;
    }
    String commandName = CommandProcessor.getInstance().getCurrentCommandName();
    return commandName != null && StringUtil.containsIgnoreCase(commandName, IMPLEMENT_COMMAND_MARKER);
  }
private static boolean isImplementInterfaceInJava8Interface(@NotNull PsiClass targetClass)