private static boolean acceptsFileType(@NotNull PositionManager positionManager, @Nullable FileType fileType) {
    if (fileType != null && fileType != UnknownFileType.INSTANCE) {
      Set<? extends FileType> types = positionManager.getAcceptedFileTypes();
      if (types != null && !types.contains(fileType)) {
        return false;
      }
    }
    return true;
  }
private static boolean acceptsFileType(@NotNull PositionManager positionManager, @Nullable FileType fileType)