private boolean isValidSchemaFile(@Nullable VirtualFile schemaFile) {
    // to avoid widget blinking we consider currently loaded schema as valid one
    if (schemaFile instanceof HttpVirtualFile) return true;
    if (schemaFile == null) return false;
    JsonSchemaService service = getService();
    return service != null && service.isSchemaFile(schemaFile) && service.isApplicableToFile(schemaFile);
  }
private boolean isValidSchemaFile(@Nullable VirtualFile schemaFile)